3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; private $foo; } $foo = new Foo(); $a = eval('return ' . var_export($foo, true)); var_dump($a); var_export((array) $foo); var_dump( $foo->{"\0*\0bar"}, $foo->{"\0Foo\0foo"} ); $foo->{"\0*\0bar"} = 'baz'; $foo->{"\0Foo\0foo"} = 'bar'; var_dump(array($foo));

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.0070.00716.75
8.3.50.0160.00817.31
8.3.40.0070.00718.84
8.3.30.0150.00018.66
8.3.20.0050.00318.95
8.3.10.0060.00320.53
8.3.00.0030.00619.50
8.2.180.0030.01416.35
8.2.170.0180.00322.96
8.2.160.0030.01318.94
8.2.150.0080.00025.66
8.2.140.0090.00924.66
8.2.130.0080.00026.16
8.2.120.0040.00418.93
8.2.110.0070.00421.12
8.2.100.0070.00417.72
8.2.90.0060.00319.34
8.2.80.0040.00419.03
8.2.70.0030.00517.75
8.2.60.0000.00817.80
8.2.50.0090.00018.07
8.2.40.0030.00618.16
8.2.30.0040.00417.98
8.2.20.0060.00319.53
8.2.10.0040.00417.76
8.2.00.0050.00317.71
8.1.280.0060.01225.92
8.1.270.0080.00423.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0040.00722.42
8.1.230.0030.00820.77
8.1.220.0030.00517.74
8.1.210.0040.00418.81
8.1.200.0000.00917.35
8.1.190.0030.00617.41
8.1.180.0090.00018.10
8.1.170.0000.00820.62
8.1.160.0000.00818.96
8.1.150.0090.00018.65
8.1.140.0070.00017.46
8.1.130.0000.00717.75
8.1.120.0070.00017.46
8.1.110.0040.00417.38
8.1.100.0030.00317.34
8.1.90.0000.00717.47
8.1.80.0000.00717.50
8.1.70.0050.00217.34
8.1.60.0050.00217.59
8.1.50.0030.00617.51
8.1.40.0040.00417.41
8.1.30.0040.00417.64
8.1.20.0040.00417.64
8.1.10.0050.00317.55
8.1.00.0060.00317.48
8.0.300.0040.00419.79
8.0.290.0040.00416.75
8.0.280.0030.00318.47
8.0.270.0040.00417.20
8.0.260.0000.00716.95
8.0.250.0000.00716.92
8.0.240.0040.00417.05
8.0.230.0040.00417.04
8.0.220.0000.00717.01
8.0.210.0040.00416.86
8.0.200.0030.00516.91
8.0.190.0040.00416.94
8.0.180.0040.00417.02
8.0.170.0000.00816.82
8.0.160.0070.00017.02
8.0.150.0030.00616.91
8.0.140.0080.00316.95
8.0.130.0050.00013.37
8.0.120.0000.00716.91
8.0.110.0040.00416.98
8.0.100.0050.00216.85
8.0.90.0040.00416.84
8.0.80.0080.00816.92
8.0.70.0040.00416.83
8.0.60.0000.00716.80
8.0.50.0040.00416.76
8.0.30.0120.00617.30
8.0.20.0120.01117.04
8.0.10.0040.00417.05
8.0.00.0070.01316.89
7.4.330.0030.00212.91
7.4.320.0030.00316.57
7.4.300.0070.00016.61
7.4.290.0000.00616.49
7.4.280.0050.00216.66
7.4.270.0030.00316.66
7.4.260.0030.00313.25
7.4.250.0040.00416.50
7.4.240.0070.00316.54
7.4.230.0000.00716.56
7.4.220.0070.01716.53
7.4.210.0130.00716.68
7.4.200.0000.00816.64
7.4.190.0000.00716.61
7.4.160.0120.00616.67
7.4.150.0090.00916.41
7.4.140.0140.00316.57
7.4.130.0070.01016.63
7.4.120.0110.01416.64
7.4.110.0040.01516.65
7.4.100.0090.01216.50
7.4.90.0090.01516.47
7.4.80.0090.00919.39
7.4.70.0030.01316.57
7.4.60.0090.00616.52
7.4.50.0000.00416.27
7.4.40.0080.00516.20
7.4.30.0120.00316.37
7.4.00.0100.00714.97
7.3.330.0050.00313.27
7.3.320.0060.00013.29
7.3.310.0070.00016.34
7.3.300.0000.00716.32
7.3.290.0040.01116.29
7.3.280.0140.00316.33
7.3.270.0090.00916.52
7.3.260.0040.01416.33
7.3.250.0100.01116.47
7.3.240.0090.00616.34
7.3.230.0140.00916.34
7.3.210.0190.00316.54
7.3.200.0130.00316.38
7.3.190.0090.01216.46
7.3.180.0030.01516.34
7.3.170.0060.01016.35
7.3.160.0040.01216.42
7.3.120.0080.00814.96
7.2.330.0120.00616.64
7.2.320.0090.00916.73
7.2.310.0090.00916.93
7.2.300.0150.00316.41
7.2.290.0060.00916.76
7.2.60.0060.00916.83
7.2.00.0060.00619.23
7.1.200.0100.00315.72
7.1.70.0050.00317.23
7.1.60.0040.00717.38
7.1.50.0060.00916.95
7.1.00.0100.06722.54
7.0.200.0060.01016.68
7.0.140.0130.06322.04
7.0.120.0030.06021.96
7.0.60.0030.04020.00
7.0.50.0000.08717.89
7.0.40.0100.03720.40
7.0.30.0170.05320.25
7.0.20.0200.06720.10
7.0.10.0000.06320.16
7.0.00.0100.05320.15
5.6.280.0070.07021.10
5.6.210.0000.09020.50
5.6.200.0070.05318.29
5.6.190.0070.05720.48
5.6.180.0270.04320.41
5.6.170.0170.05320.57
5.6.160.0100.06720.50
5.6.150.0170.07018.15
5.6.140.0030.04018.28
5.6.130.0130.03318.15
5.6.120.0070.08320.95
5.6.110.0170.07721.03
5.6.100.0000.08720.97
5.6.90.0070.06320.92
5.6.80.0070.07020.36
5.5.350.0330.07320.47
5.5.340.0030.04017.96
5.5.330.0070.06020.27
5.5.320.0500.06020.27
5.5.310.0300.04020.37
5.5.300.0100.05017.94
5.5.290.0070.03718.10
5.5.280.0070.05320.77
5.5.270.0130.08020.96
5.5.260.0170.07320.86
5.5.250.0170.02720.70
5.5.240.0070.03020.27
5.4.450.3600.04019.45
5.4.440.0070.05019.51
5.4.430.0600.03719.55
5.4.420.0570.03719.51
5.4.410.1870.04019.42
5.4.400.0370.04019.15
5.4.390.0770.03718.96
5.4.380.0900.04319.13
5.4.370.1830.03718.92
5.4.360.1200.04019.14
5.4.350.2630.04318.97
5.4.340.4030.04319.25
5.4.320.3230.03719.13
5.4.310.3830.03718.97
5.4.300.3900.04318.96
5.4.290.5500.03318.96
5.4.280.4170.04719.14
5.4.270.5270.03718.92
5.4.260.3800.03718.96
5.4.250.3330.03318.92
5.4.240.3600.03019.20
5.4.230.3430.03719.16
5.4.220.3800.03319.12
5.4.210.3670.04319.09
5.4.200.4170.03719.14
5.4.190.3270.04719.09
5.4.180.3630.03718.97
5.4.170.3970.04019.12
5.4.160.4030.04019.19
5.4.150.3730.04018.98
5.4.140.3800.03316.46
5.4.130.3770.03016.44
5.4.120.1800.04316.48
5.4.110.3830.03016.22
5.4.100.3470.04016.48
5.4.90.3900.03016.52
5.4.80.3870.03716.50
5.4.70.3630.04016.54
5.4.60.4000.03716.33
5.4.50.0100.05716.43
5.4.40.3270.04016.33
5.4.30.3970.03316.45
5.4.20.3570.03716.60
5.4.10.3900.03716.23
5.4.00.4030.03715.83
5.3.290.3070.03714.69
5.3.280.3470.03314.66
5.3.270.0400.03314.62
5.3.260.3800.03714.61
5.3.250.3700.03714.61
5.3.240.3300.04014.64
5.3.230.3330.04014.66
5.3.220.3800.03314.57
5.3.210.3530.04314.56
5.3.200.3970.04314.60
5.3.190.3930.04014.57
5.3.180.3370.04014.59
5.3.170.4000.02314.57
5.3.160.0100.04314.62
5.3.150.0030.04314.57
5.3.140.1430.05714.55
5.3.130.3430.03714.54
5.3.120.3730.03714.60
5.3.110.3470.03714.62
5.3.100.3730.04014.05
5.3.90.3530.04014.05
5.3.80.3570.03713.91
5.3.70.3430.04013.93
5.3.60.3530.03314.17
5.3.50.3870.03313.85
5.3.40.3200.03313.91
5.3.30.2870.03713.95
5.3.20.0230.04013.70
5.3.10.0030.04313.61
5.3.00.2870.03313.53
5.2.170.3130.03711.22
5.2.160.2900.02311.12
5.2.150.3100.03011.14
5.2.140.2130.03011.21
5.2.130.0000.04311.25
5.2.120.0000.03311.26
5.2.110.0070.02711.05
5.2.100.1930.03311.16
5.2.90.2600.03311.07
5.2.80.2970.03011.16
5.2.70.2270.02311.15
5.2.60.3700.02711.20
5.2.50.4000.03711.03
5.2.40.3170.02711.05
5.2.30.3200.03011.05
5.2.20.3430.02311.00
5.2.10.3270.03011.04
5.2.00.3200.02310.80
5.1.60.3130.01710.05
5.1.50.3670.03310.02
5.1.40.2700.0239.98
5.1.30.2670.02310.40
5.1.20.2630.02710.37
5.1.10.2770.02310.10
5.1.00.2670.02010.12
5.0.50.1530.0278.63
5.0.40.1000.0208.46
5.0.30.1070.0278.29
5.0.20.0830.0178.34
5.0.10.0630.0238.17
5.0.00.0730.0308.07
4.4.90.1030.0136.05
4.4.80.1600.0136.05
4.4.70.1770.0176.05
4.4.60.1470.0176.05
4.4.50.1570.0176.05
4.4.40.1370.0276.05
4.4.30.1630.0076.05
4.4.20.0730.0176.05
4.4.10.1330.0136.05
4.4.00.1130.0236.05
4.3.110.1330.0136.05
4.3.100.0800.0136.05
4.3.90.0770.0136.05
4.3.80.1330.0276.05
4.3.70.0770.0106.05
4.3.60.1170.0136.05
4.3.50.0870.0136.05
4.3.40.0600.0276.05
4.3.30.0670.0136.05
4.3.20.0630.0176.05
4.3.10.0630.0176.05
4.3.00.0630.0176.05

preferences:
51.42 ms | 401 KiB | 5 Q