3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public $test = ['foo' => 'bar']; }; $my = new MyClass(); $test = var_export(serialize($my), true); $evalString = "<?php return unserialize(" . $test . ");"; file_put_contents($tmpFile, $evalString); var_dump($test);

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.00318.31
8.3.50.0030.01016.49
8.3.40.0150.00018.98
8.3.30.0030.01018.68
8.3.20.0040.00421.73
8.3.10.0090.00021.78
8.3.00.0050.00317.80
8.2.180.0070.00718.66
8.2.170.0060.00922.96
8.2.160.0070.00722.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.31
8.2.120.0000.00826.35
8.2.110.0060.00320.48
8.2.100.0040.00817.78
8.2.90.0060.00319.25
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0000.00720.60
8.2.30.0030.00619.26
8.2.20.0000.00817.97
8.2.10.0040.00418.12
8.2.00.0080.00017.96
8.1.280.0080.00825.92
8.1.270.0040.00423.69
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0090.00020.98
8.1.230.0070.00317.71
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0000.00817.47
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0080.00018.56
8.1.160.0000.00718.90
8.1.150.0000.00720.01
8.1.140.0070.00019.49
8.1.130.0020.00518.80
8.1.120.0060.00317.36
8.1.110.0000.00817.45
8.1.100.0070.00017.46
8.1.90.0050.00317.36
8.1.80.0040.00417.42
8.1.70.0080.00017.48
8.1.60.0030.00517.50
8.1.50.0000.00717.55
8.1.40.0030.00517.50
8.1.30.0040.00417.68
8.1.20.0000.00817.66
8.1.10.0050.00317.45
8.1.00.0030.00617.51
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00318.44
8.0.270.0000.00717.25
8.0.260.0060.00016.88
8.0.250.0040.00416.99
8.0.240.0000.00816.91
8.0.230.0000.00916.94
8.0.220.0070.00016.86
8.0.210.0040.00417.01
8.0.200.0040.00416.99
8.0.190.0060.00316.95
8.0.180.0030.00517.00
8.0.170.0040.00416.93
8.0.160.0050.00317.00
8.0.150.0040.00416.91
8.0.140.0040.00416.97
8.0.130.0000.00513.34
8.0.120.0050.00316.89
8.0.110.0030.00516.77
8.0.100.0070.00017.01
8.0.90.0050.00317.02
8.0.80.0060.01017.02
8.0.70.0040.00416.96
8.0.60.0050.00316.85
8.0.50.0040.00416.87
8.0.30.0110.01017.24
8.0.20.0120.00917.40
8.0.10.0040.00416.96
8.0.00.0100.01016.84
7.4.330.0060.00015.55
7.4.320.0060.00016.43
7.4.300.0030.00316.35
7.4.290.0030.00316.33
7.4.280.0040.00416.52
7.4.270.0040.00416.42
7.4.260.0000.00713.20
7.4.250.0000.00816.40
7.4.240.0040.00416.42
7.4.230.0070.00016.43
7.4.220.0120.00616.55
7.4.210.0060.00916.45
7.4.200.0000.00716.57
7.4.160.0080.00816.52
7.4.150.0100.00717.40
7.4.140.0110.00717.86
7.4.130.0100.01016.50
7.4.120.0080.01416.51
7.4.110.0080.00816.59
7.4.100.0100.00716.38
7.4.90.0070.01416.44
7.4.80.0040.01219.39
7.4.70.0080.01116.44
7.4.60.0030.01316.45
7.4.50.0070.00716.49
7.4.40.0110.00616.61
7.4.30.0130.00316.69
7.4.00.0050.01214.93
7.3.330.0030.00313.38
7.3.320.0000.00613.44
7.3.310.0040.00416.23
7.3.300.0040.00416.32
7.3.290.0080.00816.32
7.3.280.0080.01016.34
7.3.270.0110.00617.40
7.3.260.0120.00916.34
7.3.250.0140.00616.44
7.3.240.0110.00616.35
7.3.230.0040.01116.43
7.3.210.0030.01316.40
7.3.200.0080.00816.29
7.3.190.0070.01016.33
7.3.180.0030.01216.38
7.3.170.0080.00816.35
7.3.160.0130.00316.38
7.3.120.0060.01014.91
7.3.110.0110.00714.84
7.3.100.0090.00614.80
7.3.90.0120.00314.79
7.3.80.0030.00614.96
7.3.70.0090.00014.80
7.3.60.0000.00914.69
7.3.50.0070.00714.61
7.3.40.0090.00614.80
7.3.30.0030.00614.53
7.3.20.0040.01116.53
7.3.10.0040.01116.64
7.3.00.0030.00916.61
7.2.330.0120.00916.71
7.2.320.0120.00916.66
7.2.310.0060.00916.48
7.2.300.0160.00816.41
7.2.290.0090.01216.46
7.2.250.0060.01015.05
7.2.240.0100.01014.84
7.2.230.0090.00614.49
7.2.220.0060.00614.90
7.2.210.0060.00615.03
7.2.200.0060.00615.00
7.2.190.0030.01015.00
7.2.180.0030.01314.87
7.2.170.0030.00815.08
7.2.60.0030.01216.86
7.2.50.0000.01616.61
7.2.00.0000.01419.59
7.1.330.0030.01315.63
7.1.320.0030.00815.79
7.1.310.0120.00315.86
7.1.300.0070.00415.70
7.1.290.0040.00715.56
7.1.280.0110.00415.55
7.1.270.0030.00915.89
7.1.260.0050.00315.83
7.1.200.0000.01215.42
7.1.70.0030.00517.03
7.1.60.0600.01033.16
7.1.50.0800.00732.98
7.1.40.0600.01332.57
7.1.30.0630.01332.48
7.1.20.0830.01332.53
7.1.10.0700.01014.67
7.1.00.0470.00714.73
7.0.200.0600.01014.96
7.0.190.0600.01714.90
7.0.180.0370.01014.41
7.0.170.0530.00714.32
7.0.160.0630.01014.38
7.0.150.0430.00714.30
7.0.140.0470.01014.62
7.0.130.0330.01314.66
7.0.120.0530.00314.89
7.0.110.0300.01314.45
7.0.100.0300.01714.35
7.0.90.0400.00714.49
7.0.80.0430.01014.56
7.0.70.1530.00714.39
7.0.60.0330.01314.30
7.0.50.0500.00714.42
7.0.40.0570.00714.90
7.0.30.0670.00714.75
7.0.20.0370.01714.38
7.0.10.0330.01314.65
7.0.00.0370.01014.39

preferences:
45.47 ms | 400 KiB | 5 Q