3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (debug_backtrace()) { return new class { public $bar; public function bing($foo = null) { if ($foo) $foo->bing(); } }; } $oldFoo = require(__FILE__); $newFoo = require(__FILE__); var_dump(get_class_methods($oldFoo)); var_dump(get_object_vars($oldFoo)); $newFoo->bing($oldFoo);

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.0120.00918.27
8.3.50.0140.00722.07
8.3.40.0060.00918.84
8.3.30.0110.00418.72
8.3.20.0080.00020.29
8.3.10.0050.00323.62
8.3.00.0090.00619.38
8.2.180.0090.00625.92
8.2.170.0090.00618.95
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00422.25
8.2.120.0040.00426.35
8.2.110.0090.00020.47
8.2.100.0040.00717.91
8.2.90.0050.00220.57
8.2.80.0070.00318.05
8.2.70.0000.00917.80
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0000.00718.09
8.2.30.0000.00818.07
8.2.20.0050.00217.78
8.2.10.0040.00417.95
8.2.00.0000.01018.01
8.1.280.0130.00625.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0100.00023.77
8.1.230.0100.00322.64
8.1.220.0040.00417.77
8.1.210.0050.00319.04
8.1.200.0060.00317.25
8.1.190.0090.00017.25
8.1.180.0080.00018.10
8.1.170.0060.00318.59
8.1.160.0050.00218.78
8.1.150.0000.00818.89
8.1.140.0040.00419.60
8.1.130.0030.00517.73
8.1.120.0000.00717.50
8.1.110.0000.01017.43
8.1.100.0020.00517.37
8.1.90.0000.00817.46
8.1.80.0040.00417.53
8.1.70.0030.00617.46
8.1.60.0030.00517.57
8.1.50.0030.00617.67
8.1.40.0040.00417.63
8.1.30.0030.00617.64
8.1.20.0030.00517.74
8.1.10.0040.00417.61
8.1.00.0040.00417.53
8.0.300.0000.00819.98
8.0.290.0030.00616.88
8.0.280.0040.00418.49
8.0.270.0000.00816.89
8.0.260.0040.00417.33
8.0.250.0000.00717.06
8.0.240.0000.00716.93
8.0.230.0070.00017.02
8.0.220.0000.00817.00
8.0.210.0000.00817.01
8.0.200.0040.00416.91
8.0.190.0000.00817.05
8.0.180.0040.00417.01
8.0.170.0000.00716.88
8.0.160.0040.00417.01
8.0.150.0040.00416.92
8.0.140.0070.00016.91
8.0.130.0060.00013.34
8.0.120.0050.00516.99
8.0.110.0030.00517.00
8.0.100.0040.00416.91
8.0.90.0020.00516.78
8.0.80.0070.01117.00
8.0.70.0000.00717.06
8.0.60.0080.00017.00
8.0.50.0000.00716.82
8.0.30.0160.00216.95
8.0.20.0120.01017.40
8.0.10.0000.00817.05
8.0.00.0070.01016.71
7.4.330.0000.00715.08
7.4.320.0030.00316.42
7.4.300.0000.00616.57
7.4.290.0070.00016.43
7.4.280.0040.00416.56
7.4.270.0000.00716.54
7.4.260.0050.00516.50
7.4.250.0050.00216.55
7.4.240.0000.00716.51
7.4.230.0070.00016.64
7.4.220.0150.00816.60
7.4.210.0000.01416.46
7.4.200.0000.00716.41
7.4.160.0100.00916.45
7.4.150.0060.01517.40
7.4.140.0100.00817.86
7.4.130.0050.01616.55
7.4.120.0150.00516.53
7.4.110.0000.01716.71
7.4.100.0140.00816.57
7.4.90.0130.01316.54
7.4.80.0130.01019.39
7.4.70.0170.00016.52
7.4.60.0140.00616.69
7.4.50.0100.00016.22
7.4.40.0140.00316.55
7.4.30.0100.00716.57
7.4.10.0090.00915.23
7.4.00.0070.00715.03
7.3.330.0000.00613.08
7.3.320.0050.00013.29
7.3.310.0000.00816.18
7.3.300.0040.00416.14
7.3.290.0090.00716.30
7.3.280.0070.01016.30
7.3.270.0030.01517.40
7.3.260.0060.01116.31
7.3.250.0110.00716.34
7.3.240.0140.00516.41
7.3.230.0110.00816.48
7.3.210.0120.00616.38
7.3.200.0060.01516.37
7.3.190.0090.00816.36
7.3.180.0030.01916.41
7.3.170.0070.01516.38
7.3.160.0090.01316.30
7.3.130.0040.01114.68
7.3.120.0120.00614.79
7.3.110.0070.00714.67
7.3.100.0090.00614.73
7.3.90.0070.01014.53
7.3.80.0070.00714.91
7.3.70.0000.01214.76
7.3.60.0120.00314.83
7.3.50.0060.00314.51
7.3.40.0030.01314.91
7.3.30.0100.00314.80
7.3.20.0100.00316.38
7.3.10.0040.01216.43
7.3.00.0100.00716.16
7.2.330.0120.00616.77
7.2.320.0120.00616.55
7.2.310.0060.01416.71
7.2.300.0120.00916.52
7.2.290.0120.01416.70
7.2.260.0070.01014.98
7.2.250.0110.00714.85
7.2.240.0040.00815.18
7.2.230.0090.00615.18
7.2.220.0030.01314.85
7.2.210.0000.01315.17
7.2.200.0100.00315.03
7.2.190.0030.01114.86
7.2.180.0110.00314.99
7.2.170.0060.01014.75
7.2.160.0000.01114.71
7.2.150.0030.01216.63
7.2.140.0040.01216.93
7.2.130.0140.00317.02
7.2.120.0030.01016.72
7.2.110.0090.00616.88
7.2.100.0090.00616.93
7.2.90.0030.00917.06
7.2.80.0090.00316.72
7.2.70.0000.01017.10
7.2.60.0040.01116.82
7.2.50.0030.01016.88
7.2.40.0070.00716.96
7.2.30.0060.01016.67
7.2.20.0060.00916.71
7.2.10.0030.01016.71
7.2.00.0040.00817.94
7.1.330.0030.01016.08
7.1.320.0060.00915.70
7.1.310.0090.00315.54
7.1.300.0040.00715.80
7.1.290.0030.00715.68
7.1.280.0100.00715.86
7.1.270.0030.00915.86
7.1.260.0090.00015.76
7.1.250.0100.00615.70
7.1.240.0060.00615.62
7.1.230.0040.00415.91
7.1.220.0080.00815.98
7.1.210.0020.01115.58
7.1.200.0050.00915.80
7.1.190.0000.01015.92
7.1.180.0060.00915.86
7.1.170.0030.00615.61
7.1.160.0040.00815.87
7.1.150.0120.00315.68
7.1.140.0100.00615.88
7.1.130.0060.00915.87
7.1.120.0100.00315.63
7.1.110.0000.00915.67
7.1.100.0040.01215.91
7.1.90.0040.01115.91
7.1.80.0000.01215.88
7.1.70.0050.00516.35
7.1.60.0030.01117.65
7.1.50.0070.01016.45
7.1.40.0040.01115.64
7.1.30.0030.01015.89
7.1.20.0000.00915.51
7.1.10.0080.00015.74
7.1.00.0070.04018.98
7.0.330.0030.01015.21
7.0.320.0070.00715.38
7.0.310.0040.00815.36
7.0.300.0030.00715.52
7.0.290.0070.00715.41
7.0.280.0060.00915.46
7.0.270.0060.00915.45
7.0.260.0070.00415.31
7.0.250.0040.00815.44
7.0.240.0000.01315.41
7.0.230.0070.00315.36
7.0.220.0000.00915.29
7.0.210.0070.00315.32
7.0.200.0050.01016.09
7.0.190.0050.00515.16
7.0.180.0060.00615.46
7.0.170.0080.00315.39
7.0.160.0040.00415.40
7.0.150.0060.00915.32
7.0.140.0040.00815.31
7.0.130.0090.00015.38
7.0.120.0030.01015.16
7.0.110.0040.01115.32
7.0.100.0140.00015.30
7.0.90.0070.00715.21
7.0.80.0800.03817.64
7.0.70.0250.03717.53
7.0.60.0310.03817.84
7.0.50.0110.03817.94
7.0.40.0080.03516.95
7.0.30.0120.03216.76
7.0.20.0030.04316.79
7.0.10.0110.03916.91
7.0.00.0090.03516.92
5.6.400.0070.00714.36
5.6.390.0030.00614.18
5.6.380.0060.00914.36
5.6.370.0060.00314.08
5.6.360.0060.00914.25
5.6.350.0060.00614.20
5.6.340.0060.00313.91
5.6.330.0070.00413.97
5.6.320.0030.01013.75
5.6.310.0060.00914.46
5.6.300.0030.00914.02
5.6.290.0030.01114.38
5.6.280.0040.00714.26
5.6.270.0000.01414.03
5.6.260.0000.01114.07
5.6.250.0030.01014.12
5.6.240.0030.01014.12
5.6.230.0110.03417.37
5.6.220.0170.03317.54
5.6.210.0080.03317.38
5.6.200.0050.03917.62
5.6.190.0150.03217.54
5.6.180.0120.05017.64
5.6.170.0100.03417.68
5.6.160.0120.03217.63
5.6.150.0080.03217.45
5.6.140.0080.03317.53
5.6.130.0100.03517.77
5.6.120.0080.04217.65
5.6.110.0110.04317.67
5.6.100.0080.04017.55
5.6.90.0110.03317.60
5.6.80.0130.02817.26
5.6.70.0100.03217.11
5.6.60.0110.03117.23
5.6.50.0130.03717.28
5.6.40.0080.03717.23
5.6.30.0050.03817.30
5.6.20.0140.02917.32
5.6.10.0160.03017.17
5.6.00.0070.04017.23
5.5.380.0120.00014.12
5.5.370.0000.01314.43
5.5.360.0040.01113.90
5.5.350.0060.00913.91
5.5.340.0000.01014.12
5.5.330.0040.01214.23
5.5.320.0060.00613.98
5.5.310.0090.00914.00
5.5.300.0030.00914.05
5.5.290.0100.00313.98
5.5.280.0070.00714.05
5.5.270.0000.01113.96
5.5.260.0040.00714.11
5.5.250.0030.00613.74
5.5.240.0030.01014.07
5.5.230.0040.01114.14
5.5.220.0000.01514.11
5.5.210.0110.00014.17
5.5.200.0030.01013.68
5.5.190.0040.01113.62
5.5.180.0030.01213.91
5.5.170.0090.00914.05
5.5.160.0100.00313.89
5.5.150.0060.00314.21
5.5.140.0040.00813.71
5.5.130.0060.00914.20
5.5.120.0080.00814.09
5.5.110.0060.00614.18
5.5.100.0100.00313.94
5.5.90.0090.00313.90
5.5.80.0070.00714.27
5.5.70.0110.00414.08
5.5.60.0060.00614.30
5.5.50.0000.00914.27
5.5.40.0040.01213.96
5.5.30.0030.01014.15
5.5.20.0080.00514.15
5.5.10.0060.00913.96
5.5.00.0070.00314.05

preferences:
54.66 ms | 401 KiB | 5 Q