3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; private $foo; } $foo = new Foo(); eval('$a = ' . 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.0130.00716.63
8.3.50.0090.00918.28
8.3.40.0070.01018.85
8.3.30.0140.00018.89
8.3.20.0040.00418.82
8.3.10.0040.00420.52
8.3.00.0130.00019.39
8.2.180.0040.01116.75
8.2.170.0140.00422.96
8.2.160.0100.00321.19
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.24
8.2.110.0050.00520.88
8.2.100.0080.00417.78
8.2.90.0030.00720.95
8.2.80.0030.00618.04
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0030.00518.22
8.2.30.0000.00717.98
8.2.20.0000.00817.71
8.2.10.0030.00617.80
8.2.00.0040.00417.68
8.1.270.0030.00524.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.79
8.1.230.0000.01120.83
8.1.220.0080.00017.74
8.1.210.0050.00318.80
8.1.200.0080.00017.23
8.1.190.0040.00417.52
8.1.180.0050.00318.10
8.1.170.0000.00818.71
8.1.160.0040.00418.90
8.1.150.0000.00818.55
8.1.140.0040.00417.34
8.1.130.0000.00717.71
8.1.120.0000.00817.46
8.1.110.0070.00017.43
8.1.100.0050.00317.29
8.1.90.0070.00017.52
8.1.80.0070.00017.50
8.1.70.0040.00417.45
8.1.60.0040.00417.60
8.1.50.0000.00817.47
8.1.40.0030.00617.55
8.1.30.0070.00017.59
8.1.20.0080.00017.67
8.1.10.0030.00617.56
8.1.00.0040.00417.50
8.0.300.0060.00319.98
8.0.290.0040.00416.75
8.0.280.0070.00018.37
8.0.270.0000.00717.19
8.0.260.0070.00016.92
8.0.250.0060.00317.09
8.0.240.0080.00017.05
8.0.230.0040.00417.04
8.0.220.0030.00316.98
8.0.210.0000.00716.93
8.0.200.0000.00717.06
8.0.190.0050.00317.03
8.0.180.0030.00316.89
8.0.170.0020.00516.91
8.0.160.0030.00516.86
8.0.150.0000.00816.96
8.0.140.0110.00016.88
8.0.130.0000.00513.40
8.0.120.0000.00816.89
8.0.110.0000.00716.93
8.0.100.0040.00417.00
8.0.90.0050.00316.85
8.0.80.0130.01017.00
8.0.70.0070.00016.92
8.0.60.0040.00416.84
8.0.50.0060.00316.83
8.0.30.0100.00916.97
8.0.20.0070.01216.99
8.0.10.0040.00416.96
8.0.00.0090.01016.75
7.4.330.0000.00512.96
7.4.320.0060.00016.44
7.4.300.0030.00316.59
7.4.290.0030.00316.61
7.4.280.0050.00216.50
7.4.270.0000.00816.51
7.4.260.0030.00313.18
7.4.250.0030.00616.50
7.4.240.0030.00316.45
7.4.230.0000.00716.69
7.4.220.0030.01616.61
7.4.210.0090.00916.61
7.4.200.0000.00716.60
7.4.190.0000.00716.48
7.4.160.0090.00616.43
7.4.150.0000.01716.39
7.4.140.0110.00916.55
7.4.130.0090.00916.60
7.4.120.0060.01316.44
7.4.110.0070.01016.63
7.4.100.0160.00016.42
7.4.90.0070.01116.53
7.4.80.0150.00519.39
7.4.70.0110.00616.35
7.4.60.0170.00016.48
7.4.50.0040.00416.55
7.4.40.0000.01616.30
7.4.30.0030.01216.63
7.4.00.0030.01414.94
7.3.330.0060.00013.23
7.3.320.0000.00613.25
7.3.310.0040.00416.20
7.3.300.0070.00016.14
7.3.290.0030.01516.30
7.3.280.0090.00816.26
7.3.270.0130.00616.30
7.3.260.0130.00316.32
7.3.250.0090.01016.52
7.3.240.0080.00816.49
7.3.230.0100.00716.54
7.3.210.0110.00716.34
7.3.200.0030.01316.44
7.3.190.0120.00616.42
7.3.180.0040.01116.36
7.3.170.0030.01216.42
7.3.160.0040.01916.44
7.3.120.0080.00814.94
7.2.330.0100.00716.71
7.2.320.0120.00616.45
7.2.310.0070.01716.47
7.2.300.0170.00316.77
7.2.290.0110.00616.86
7.2.110.0100.01016.72
7.2.60.0070.00716.83
7.2.00.0060.00919.24
7.1.200.0080.00815.77
7.1.100.0340.01118.00
7.1.70.0070.00717.12
7.1.60.0110.01419.40
7.1.50.0110.01116.63
7.1.00.0070.05022.50
7.0.200.0000.00716.81
7.0.140.0000.07721.98
7.0.120.0070.07022.01
7.0.60.0030.04019.94
7.0.50.0070.03717.99
7.0.40.0100.08320.09
7.0.30.0170.04320.25
7.0.20.0230.08020.23
7.0.10.0000.05320.09
7.0.00.0100.03320.29
5.6.280.0030.07320.91
5.6.210.0070.06320.77
5.6.200.0130.03718.20
5.6.190.0100.04020.77
5.6.180.0230.05320.68
5.6.170.0330.07720.41
5.6.160.0100.08020.61
5.6.150.0070.04318.28
5.6.140.0100.03318.11
5.6.130.0030.08718.18
5.6.120.0100.07720.99
5.6.110.0100.07721.13
5.6.100.0130.07720.94
5.6.90.0000.04321.16
5.6.80.0100.07720.38
5.6.70.4500.03320.39
5.5.350.0300.06020.43
5.5.340.0070.05318.09
5.5.330.0100.05320.31
5.5.320.0070.05020.36
5.5.310.0270.08020.37
5.5.300.0070.05318.02
5.5.290.0030.07717.92
5.5.280.0000.04320.73
5.5.270.0000.07720.68
5.5.260.0130.07020.86
5.5.250.0100.05720.77
5.5.240.0270.08720.35
5.4.450.0030.05719.18
5.4.440.0000.05319.33
5.4.430.0030.04019.17
5.4.420.0070.07719.29
5.4.410.0000.08719.36
5.4.400.0130.05018.98
5.4.390.0130.07319.24
5.4.380.0030.06718.85
5.4.370.0100.03318.88
5.4.360.0100.03318.86
5.4.350.0030.07719.00
5.4.340.0030.04319.12
5.4.320.0070.04019.14
5.4.310.0100.03319.07
5.4.300.0100.05019.14
5.4.290.0030.08319.08
5.4.280.0170.06018.87
5.4.270.0070.07318.85
5.4.260.0070.07318.98
5.4.250.0030.07019.14
5.4.240.0030.05019.26
5.4.230.0070.07719.18
5.4.220.0100.03319.15
5.4.210.0070.03718.84
5.4.200.0070.08019.00
5.4.190.0030.04018.84
5.4.180.0030.03719.14
5.4.170.0070.03718.84
5.4.160.0030.07318.83
5.4.150.0030.07018.84
5.4.140.0030.03716.38
5.4.130.0230.03716.36
5.4.120.0130.04316.41
5.4.110.0000.04016.30
5.4.100.0000.06316.30
5.4.90.0100.06716.39
5.4.80.0070.05716.29
5.4.70.0100.06716.28
5.4.60.0000.07016.38
5.4.50.0130.06716.37
5.4.40.0030.04016.40
5.4.30.0030.03716.36
5.4.20.0070.04316.36
5.4.10.0100.07316.46
5.4.00.0070.05315.94
5.3.290.0100.03314.71
5.3.280.0000.06714.66
5.3.270.0000.05014.66
5.3.260.0030.05014.62
5.3.250.0100.03314.52
5.3.240.0070.04714.66
5.3.230.0030.08314.52
5.3.220.0000.04314.72
5.3.210.0030.04014.66
5.3.200.0100.08014.53
5.3.190.0130.07014.46
5.3.180.0070.06014.56
5.3.170.0000.05014.59
5.3.160.0130.06314.57
5.3.150.0070.07714.64
5.3.140.0070.04014.70
5.3.130.0100.05014.70
5.3.120.0100.04014.47
5.3.110.0000.08314.43
5.3.100.0100.03714.04
5.3.90.0070.03314.02
5.3.80.0030.03714.02
5.3.70.0030.06013.96
5.3.60.0030.06314.00
5.3.50.0030.05713.94
5.3.40.0070.04713.94
5.3.30.0000.05013.93
5.3.20.0100.05713.71
5.3.10.0130.06013.68
5.3.00.0030.05313.64
5.2.170.0030.04011.20
5.2.160.0030.05711.04
5.2.150.0000.03311.12
5.2.140.0030.04711.19
5.2.130.0030.06011.11
5.2.120.0100.03011.02
5.2.110.0100.06011.07
5.2.100.0070.05711.17
5.2.90.0030.05011.03
5.2.80.0030.03311.10
5.2.70.0070.02711.14
5.2.60.0130.05311.05
5.2.50.0070.04011.03
5.2.40.0030.03011.16
5.2.30.0000.03711.12
5.2.20.0070.04010.97
5.2.10.0070.02310.94
5.2.00.0030.02710.62
5.1.60.0000.02710.15
5.1.50.0030.0539.95
5.1.40.0100.0209.97
5.1.30.0070.05310.40
5.1.20.0030.05010.32
5.1.10.0030.04310.04
5.1.00.0130.0479.99
5.0.50.0030.0338.47
5.0.40.0000.0338.56
5.0.30.0000.0478.20
5.0.20.0070.0408.20
5.0.10.0030.0178.15
5.0.00.0030.0438.18
4.4.90.0000.0407.84
4.4.80.0070.0307.84
4.4.70.0000.0377.84
4.4.60.0000.0377.84
4.4.50.0000.0237.84
4.4.40.0030.0477.84
4.4.30.0000.0277.84
4.4.20.0030.0307.84
4.4.10.0000.0377.84
4.4.00.0070.0537.84
4.3.110.0030.0177.84
4.3.100.0030.0337.84
4.3.90.0000.0337.84
4.3.80.0100.0477.84
4.3.70.0000.0337.84
4.3.60.0000.0207.84
4.3.50.0000.0207.84
4.3.40.0000.0577.84
4.3.30.0000.0237.84
4.3.20.0000.0377.84
4.3.10.0030.0277.84
4.3.00.0070.0337.84

preferences:
57.08 ms | 400 KiB | 5 Q