3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; private $foo; } $foo = new Foo(); $a = eval(var_export($foo, true)); 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.0180.00416.75
8.3.50.0100.00717.62
8.3.40.0030.01318.71
8.3.30.0130.00318.71
8.3.20.0030.00518.73
8.3.10.0130.00318.71
8.3.00.0080.00019.51
8.2.180.0140.00716.50
8.2.170.0110.00422.96
8.2.160.0090.00620.93
8.2.150.0120.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00419.20
8.2.110.0100.00020.97
8.2.100.0080.00417.91
8.2.90.0060.00319.41
8.2.80.0040.00419.24
8.2.70.0040.00417.50
8.2.60.0000.00917.90
8.2.50.0000.00818.07
8.2.40.0030.00518.22
8.2.30.0040.00418.15
8.2.20.0060.00317.82
8.2.10.0000.00717.66
8.2.00.0080.00017.69
8.1.280.0100.00325.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0070.00322.47
8.1.230.0070.00420.96
8.1.220.0040.00417.74
8.1.210.0000.00819.01
8.1.200.0030.00717.34
8.1.190.0040.00417.52
8.1.180.0060.00318.10
8.1.170.0000.00718.78
8.1.160.0040.00418.79
8.1.150.0060.00318.64
8.1.140.0040.00417.50
8.1.130.0030.00317.74
8.1.120.0050.00217.48
8.1.110.0000.00817.46
8.1.100.0030.00317.42
8.1.90.0000.00717.34
8.1.80.0040.00317.38
8.1.70.0070.00017.42
8.1.60.0030.00617.57
8.1.50.0030.00517.52
8.1.40.0030.00617.52
8.1.30.0050.00317.68
8.1.20.0040.00417.57
8.1.10.0000.00717.47
8.1.00.0070.00317.54
8.0.300.0000.00720.04
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0070.00017.12
8.0.260.0040.00416.80
8.0.250.0000.00716.99
8.0.240.0030.00316.99
8.0.230.0000.00717.04
8.0.220.0070.00016.83
8.0.210.0000.00716.99
8.0.200.0030.00317.07
8.0.190.0000.00716.97
8.0.180.0080.00016.93
8.0.170.0040.00416.90
8.0.160.0000.00717.01
8.0.150.0090.00016.88
8.0.140.0030.00316.80
8.0.130.0060.00013.26
8.0.120.0040.00416.84
8.0.110.0000.00716.86
8.0.100.0040.00416.74
8.0.90.0040.00416.95
8.0.80.0090.00616.95
8.0.70.0040.00416.99
8.0.60.0040.00416.89
8.0.50.0040.00416.78
8.0.30.0100.00716.83
8.0.20.0070.01116.94
8.0.10.0040.00416.88
8.0.00.0110.00616.91
7.4.330.0050.00013.06
7.4.320.0000.00716.41
7.4.300.0060.00016.50
7.4.290.0000.00716.51
7.4.280.0000.00716.65
7.4.270.0030.00516.59
7.4.260.0030.00313.30
7.4.250.0030.00516.40
7.4.240.0030.00416.56
7.4.230.0030.00316.60
7.4.220.0070.01116.49
7.4.210.0050.01016.58
7.4.200.0030.00416.68
7.4.190.0040.00416.64
7.4.160.0120.00316.59
7.4.150.0150.00316.74
7.4.140.0100.00816.59
7.4.130.0210.00816.51
7.4.120.0070.01016.56
7.4.110.0100.00716.54
7.4.100.0110.00716.60
7.4.90.0130.00416.38
7.4.80.0130.00419.39
7.4.70.0150.00616.55
7.4.60.0040.01216.59
7.4.50.0090.00316.63
7.4.40.0030.01416.63
7.4.30.0130.00316.54
7.4.00.0030.01414.85
7.3.330.0030.00313.30
7.3.320.0040.00413.27
7.3.310.0030.00616.20
7.3.300.0000.00716.31
7.3.290.0060.00916.30
7.3.280.0090.00716.25
7.3.270.0100.00716.50
7.3.260.0100.00716.29
7.3.250.0140.00316.56
7.3.240.0080.01416.58
7.3.230.0030.01516.27
7.3.210.0040.01216.42
7.3.200.0090.00616.54
7.3.190.0100.01016.45
7.3.180.0090.00616.50
7.3.170.0060.00916.35
7.3.160.0100.00516.45
7.3.120.0060.01014.48
7.3.110.0120.00614.75
7.3.100.0000.01514.91
7.3.90.0040.00414.70
7.3.80.0110.00714.86
7.3.70.0040.01114.54
7.3.60.0040.01414.87
7.3.50.0000.01714.82
7.3.40.0090.00314.65
7.3.30.0030.01314.84
7.3.20.0100.00616.54
7.3.10.0000.01516.55
7.3.00.0090.00616.52
7.2.330.0080.00916.68
7.2.320.0090.00916.52
7.2.310.0090.01316.82
7.2.300.0140.00316.77
7.2.290.0130.00316.73
7.2.250.0060.00915.28
7.2.240.0070.01414.89
7.2.230.0040.00715.20
7.2.220.0030.00715.09
7.2.210.0140.00714.88
7.2.200.0040.00714.98
7.2.190.0070.00714.82
7.2.180.0110.00414.84
7.2.170.0030.01415.03
7.2.60.0060.01016.82
7.2.00.0040.00719.43
7.1.330.0040.01115.94
7.1.320.0060.00615.85
7.1.310.0030.01415.79
7.1.300.0060.00915.71
7.1.290.0040.00815.70
7.1.280.0070.00715.52
7.1.270.0030.01015.52
7.1.260.0040.01215.77
7.1.200.0030.01015.81
7.1.70.0040.00417.30
7.1.60.0100.00317.21
7.1.50.0100.01034.87
7.1.00.0000.08022.46
7.0.200.0030.01016.76
7.0.140.0070.07022.09
7.0.120.0030.07322.05
7.0.60.0300.06319.93
7.0.50.0030.08017.89
7.0.40.0130.07320.10
7.0.30.0570.07320.23
7.0.20.0330.05020.05
7.0.10.0070.05320.23
7.0.00.0030.04720.16
5.6.210.0130.07320.69
5.6.200.0000.08318.19
5.6.190.0070.05020.61
5.6.180.3470.04320.68
5.6.170.0270.03720.55
5.6.160.0100.04318.19
5.6.150.0100.05018.18
5.6.140.0000.04318.18
5.6.130.0200.07018.27
5.6.120.0070.08320.98
5.6.110.0100.08020.99
5.6.100.0030.08320.97
5.6.90.0100.05020.88
5.6.80.0100.05320.36
5.5.350.0270.03720.40
5.5.340.0000.04717.96
5.5.330.0070.07320.41
5.5.320.0370.04320.36
5.5.310.0170.04020.32
5.5.300.0000.05017.98
5.5.290.0030.06317.99
5.5.280.0130.08020.98
5.5.270.0100.08320.94
5.5.260.0170.07720.86
5.5.250.0030.08320.68
5.5.240.0230.07320.37
5.4.450.0070.04319.57
5.4.440.0130.04719.46
5.4.430.0070.07719.47
5.4.420.0200.06319.32
5.4.410.0000.04319.34
5.4.400.0100.04319.08
5.4.390.0030.08319.24
5.4.380.0200.05319.24
5.4.370.0170.07019.21
5.4.360.0070.08019.27
5.4.350.0100.07319.14
5.4.340.0170.06719.24
5.4.320.0070.05718.93
5.4.310.0130.05018.98
5.4.300.0000.08318.85
5.4.290.0130.04019.15
5.4.280.0100.07319.07
5.4.270.0100.06319.15
5.4.260.0030.08019.14
5.4.250.0070.04319.14
5.4.240.0030.04018.85
5.4.230.0100.06719.14
5.4.220.0030.04319.27
5.4.210.0030.07319.23
5.4.200.0100.07718.85
5.4.190.0130.07319.19
5.4.180.0100.04719.14
5.4.170.0100.04019.14
5.4.160.0130.04318.96
5.4.150.0100.05318.90
5.4.140.0030.05716.38
5.4.130.0100.06016.39
5.4.120.0000.07716.54
5.4.110.0030.08316.50
5.4.100.0100.04316.41
5.4.90.0100.07316.39
5.4.80.0100.07316.38
5.4.70.0100.06716.66
5.4.60.0070.07316.28
5.4.50.0030.04316.46
5.4.40.0100.03016.64
5.4.30.0070.03316.31
5.4.20.0000.04316.34
5.4.10.0070.03716.28
5.4.00.0070.07315.79
5.3.290.0170.06014.72
5.3.280.0000.05014.66
5.3.270.0030.04314.62
5.3.260.0030.05314.75
5.3.250.0130.04014.68
5.3.240.0100.04014.53
5.3.230.0070.07314.62
5.3.220.0000.05714.64
5.3.210.0070.05014.64
5.3.200.0130.05014.49
5.3.190.0000.07014.57
5.3.180.0100.04014.54
5.3.170.0070.06714.64
5.3.160.0200.03314.59
5.3.150.0030.06014.46
5.3.140.0000.04014.61
5.3.130.0070.04314.71
5.3.120.0130.03314.62
5.3.110.0030.04014.71
5.3.100.0030.05014.05
5.3.90.0000.04314.04
5.3.80.0030.04713.93
5.3.70.0100.04014.11
5.3.60.0070.07014.07
5.3.50.0030.04314.02
5.3.40.0030.07713.87
5.3.30.0070.03713.89
5.3.20.0070.03313.73
5.3.10.0030.03713.67
5.3.00.0000.04713.67
5.2.170.0030.06311.16
5.2.160.0100.05711.20
5.2.150.0030.06011.11
5.2.140.0030.03311.22
5.2.130.0000.03311.26
5.2.120.0030.06011.16
5.2.110.0000.05311.11
5.2.100.0030.05011.27
5.2.90.0030.03011.13
5.2.80.0000.03311.05
5.2.70.0030.06311.25
5.2.60.0000.04711.05
5.2.50.0070.05011.02
5.2.40.0000.06711.15
5.2.30.0030.05311.01
5.2.20.0030.06310.96
5.2.10.0070.05710.83
5.2.00.0100.03010.71
5.1.60.0100.02710.05
5.1.50.0000.03310.05
5.1.40.0100.05010.05
5.1.30.0070.03710.35
5.1.20.0070.05710.37
5.1.10.0070.04310.10
5.1.00.0100.05010.23
5.0.50.0000.0578.76
5.0.40.0070.0308.76
5.0.30.0100.0408.76
5.0.20.0030.0208.76
5.0.10.0000.0478.76
5.0.00.0070.0578.76
4.4.90.0000.0238.76
4.4.80.0030.0308.76
4.4.70.0030.0338.76
4.4.60.0030.0378.76
4.4.50.0000.0278.76
4.4.40.0000.0338.76
4.4.30.0000.0308.76
4.4.20.0000.0378.76
4.4.10.0000.0408.76
4.4.00.0030.0278.76
4.3.110.0030.0138.76
4.3.100.0030.0208.76
4.3.90.0000.0308.76
4.3.80.0030.0478.76
4.3.70.0000.0208.76
4.3.60.0000.0338.76
4.3.50.0000.0278.76
4.3.40.0030.0238.76
4.3.30.0030.0178.76
4.3.20.0000.0408.76
4.3.10.0000.0378.76
4.3.00.0030.0338.76

preferences:
44.59 ms | 401 KiB | 5 Q