3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{} function dynamic($name) { return new $name; } $result = dynamic( 'test' ); var_dump( $result );

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0100.01018.55
8.3.50.0060.00921.15
8.3.40.0140.00718.61
8.3.30.0100.00318.97
8.3.20.0070.00020.04
8.3.10.0040.00421.93
8.3.00.0040.00422.58
8.2.180.0000.01416.75
8.2.170.0070.01018.83
8.2.160.0030.01322.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00619.23
8.2.110.0070.00422.20
8.2.100.0070.00317.66
8.2.90.0080.00017.91
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0070.00317.91
8.2.50.0080.00018.07
8.2.40.0030.00719.95
8.2.30.0000.00718.10
8.2.20.0020.00517.58
8.2.10.0000.00817.61
8.2.00.0040.00417.59
8.1.280.0070.00725.92
8.1.270.0040.00422.11
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.47
8.1.230.0070.00420.91
8.1.220.0040.00417.74
8.1.210.0040.00418.82
8.1.200.0030.00617.23
8.1.190.0040.00417.30
8.1.180.0040.00418.65
8.1.170.0000.00918.59
8.1.160.0070.00022.18
8.1.150.0030.00518.55
8.1.140.0080.00017.39
8.1.130.0070.00017.81
8.1.120.0050.00217.33
8.1.110.0000.00817.42
8.1.100.0040.00417.40
8.1.90.0000.00717.39
8.1.80.0000.00717.40
8.1.70.0070.00017.40
8.1.60.0050.00217.56
8.1.50.0040.00417.51
8.1.40.0000.00817.35
8.1.30.0000.00717.55
8.1.20.0030.00617.67
8.1.10.0040.00417.57
8.1.00.0090.00017.55
8.0.300.0070.00019.87
8.0.290.0040.00417.18
8.0.280.0030.00318.22
8.0.270.0030.00317.23
8.0.260.0000.00616.67
8.0.250.0000.00716.81
8.0.240.0000.00716.86
8.0.230.0000.00716.86
8.0.220.0020.00516.84
8.0.210.0040.00416.71
8.0.200.0040.00416.79
8.0.190.0070.00016.88
8.0.180.0000.00716.75
8.0.170.0000.00716.84
8.0.160.0070.00016.75
8.0.150.0030.00416.77
8.0.140.0030.00416.73
8.0.130.0060.00013.21
8.0.120.0040.00416.80
8.0.110.0000.00716.80
8.0.100.0030.00516.62
8.0.90.0040.00416.88
8.0.80.0060.00916.82
8.0.70.0040.00416.64
8.0.60.0040.00416.81
8.0.50.0070.00016.88
8.0.30.0080.01117.23
8.0.20.0120.00917.40
8.0.10.0070.00016.76
8.0.00.0100.01216.77
7.4.330.0000.00515.00
7.4.320.0040.00416.56
7.4.300.0030.00316.47
7.4.290.0050.00216.58
7.4.280.0000.00716.47
7.4.270.0030.00316.56
7.4.260.0070.00016.59
7.4.250.0080.00016.59
7.4.240.0020.00516.47
7.4.230.0070.00016.62
7.4.220.0090.00916.47
7.4.210.0070.01016.61
7.4.200.0040.00416.58
7.4.190.0000.00716.30
7.4.160.0060.01616.62
7.4.150.0120.00617.40
7.4.140.0090.01117.86
7.4.130.0090.01216.43
7.4.120.0090.00916.46
7.4.110.0100.00616.45
7.4.100.0090.01416.42
7.4.90.0160.00816.42
7.4.80.0130.01019.39
7.4.70.0090.00916.45
7.4.60.0060.01016.63
7.4.50.0000.00416.39
7.4.40.0040.01522.77
7.4.30.0070.01016.48
7.4.00.0030.00615.00
7.3.330.0000.00513.23
7.3.320.0050.00013.32
7.3.310.0000.00716.32
7.3.300.0040.00316.23
7.3.290.0080.00616.22
7.3.280.0060.01216.31
7.3.270.0100.00717.40
7.3.260.0070.01116.35
7.3.250.0060.01316.56
7.3.240.0060.01216.68
7.3.230.0100.01016.39
7.3.210.0070.01416.27
7.3.200.0130.00719.39
7.3.190.0150.00616.40
7.3.180.0090.00616.16
7.3.170.0100.00616.32
7.3.160.0090.01216.53
7.3.120.0090.00614.77
7.2.330.0090.00916.67
7.2.320.0080.00816.51
7.2.310.0110.00716.55
7.2.300.0040.01216.62
7.2.290.0130.00316.50
7.2.00.0000.01119.47
7.1.200.0040.00815.81
7.1.100.0060.00617.98
7.1.70.0030.00717.26
7.1.60.0060.01319.82
7.1.50.0170.00717.02
7.1.00.0000.08022.51
7.0.200.0070.00316.54
7.0.140.0070.07322.00
7.0.60.0030.04020.06
7.0.50.0030.04017.86
7.0.40.0230.04020.27
7.0.30.0370.03320.08
7.0.20.0200.03720.07
7.0.10.0270.08320.26
7.0.00.0070.08320.19
5.6.280.0070.07020.99
5.6.210.0030.07720.71
5.6.200.0070.08018.19
5.6.190.0070.04020.67
5.6.180.3900.05320.39
5.6.170.0330.07720.54
5.6.160.0100.08020.39
5.6.150.0130.07018.29
5.6.140.0030.04018.23
5.6.130.0130.05718.18
5.6.120.0030.04320.98
5.6.110.0170.07721.00
5.6.100.0100.07320.89
5.6.90.0170.08321.02
5.6.80.0100.08020.38
5.6.70.0300.07320.40
5.5.350.0100.07020.40
5.5.340.0000.08317.95
5.5.330.0070.04020.43
5.5.320.0200.05320.42
5.5.310.0270.07720.32
5.5.300.0070.03318.07
5.5.290.0200.07318.07
5.5.280.0170.03720.90
5.5.270.0100.03720.97
5.5.260.0030.06320.77
5.5.250.0130.08020.47
5.5.240.0030.04020.12
5.4.450.1830.04719.50
5.4.440.2000.03319.39
5.4.430.2130.03719.45
5.4.420.1970.04019.55
5.4.410.1970.03719.07
5.4.400.1930.03718.98
5.4.390.2130.04719.13
5.4.380.2100.04319.13
5.4.370.1570.03319.09
5.4.360.1900.03719.21
5.4.350.1730.03718.95
5.4.340.1800.04319.25
5.4.320.1730.04019.00
5.4.310.1830.03718.95
5.4.300.1830.04019.14
5.4.290.1800.03018.84
5.4.280.1770.03319.14
5.4.270.1800.04019.24
5.4.260.1900.03319.05
5.4.250.1830.04019.30
5.4.240.1700.03319.23
5.4.230.1700.03019.08
5.4.220.1670.04318.83
5.4.210.1700.03718.85
5.4.200.1830.03719.07
5.4.190.1670.04019.19
5.4.180.1870.03719.14
5.4.170.2500.03719.05
5.4.160.1800.04019.14
5.4.150.2100.04019.07
5.4.140.2030.04716.55
5.4.130.1830.03716.46
5.4.120.2170.03316.50
5.4.110.1900.03716.59
5.4.100.2000.04716.61
5.4.90.2030.04016.50
5.4.80.1830.03316.49
5.4.70.2100.03716.55
5.4.60.1800.04716.34
5.4.50.1730.03716.56
5.4.40.2070.03716.43
5.4.30.1770.04016.52
5.4.20.1830.03016.38
5.4.10.2070.04016.25
5.4.00.1870.03715.78
5.3.290.1970.04714.67
5.3.280.1970.04314.49
5.3.270.1830.04714.71
5.3.260.2100.04014.72
5.3.250.1930.04014.68
5.3.240.1730.04014.71
5.3.230.1970.04014.61
5.3.220.1970.04014.71
5.3.210.1970.04314.68
5.3.200.2000.03714.58
5.3.190.1770.04014.61
5.3.180.2100.04714.63
5.3.170.2100.03014.46
5.3.160.2030.04014.57
5.3.150.2030.03714.47
5.3.140.1970.03314.63
5.3.130.1930.05014.69
5.3.120.1800.03314.51
5.3.110.1830.03314.44
5.3.100.2130.03314.25
5.3.90.2100.04314.16
5.3.80.1900.03314.04
5.3.70.0330.06714.02
5.3.60.0070.04014.00
5.3.50.0470.04013.95
5.3.40.1800.04314.06
5.3.30.1770.03713.91
5.3.20.1900.03713.60
5.3.10.1830.03713.57
5.3.00.1870.03013.87
5.2.170.1570.02711.29
5.2.160.1530.03011.37
5.2.150.1470.03711.15
5.2.140.1530.03011.05
5.2.130.1530.03011.21
5.2.120.1470.03311.15
5.2.110.1400.03011.15
5.2.100.0030.02711.18
5.2.90.0000.03011.19
5.2.80.0070.02311.19
5.2.70.1270.02711.01
5.2.60.1870.03010.95
5.2.50.1670.03310.94
5.2.40.1300.03310.90
5.2.30.1470.03011.04
5.2.20.1170.03010.88
5.2.10.1300.03310.91
5.2.00.1130.03010.68
5.1.60.1300.0239.87
5.1.50.1300.0239.90
5.1.40.1230.0279.96
5.1.30.1530.02710.56
5.1.20.1370.02310.36
5.1.10.1100.02710.00
5.1.00.1370.02710.04
5.0.50.0670.0208.46
5.0.40.0730.0308.30
5.0.30.0670.0438.30
5.0.20.0800.0278.09
5.0.10.0830.0238.30
5.0.00.0670.0408.29
4.4.90.0800.0138.02
4.4.80.0670.0208.02
4.4.70.0530.0178.02
4.4.60.0670.0238.02
4.4.50.0770.0208.02
4.4.40.0800.0338.02
4.4.30.0570.0178.02
4.4.20.0630.0178.02
4.4.10.0730.0238.02
4.4.00.0700.0338.02
4.3.110.0700.0278.02
4.3.100.0670.0178.02
4.3.90.0730.0208.02
4.3.80.0800.0308.02
4.3.70.0730.0178.02
4.3.60.0700.0178.02
4.3.50.0700.0238.02
4.3.40.0530.0278.02
4.3.30.0400.0278.02
4.3.20.0270.0208.02
4.3.10.0330.0178.02
4.3.00.0330.0178.02

preferences:
43.26 ms | 401 KiB | 5 Q