3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FileClass { public $command = 'return file_get_contents("info.txt");'; public function __toString() { return eval($this->command); } } $x = new FileClass(); var_dump(serialize($x));

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.70.0090.00618.55
8.3.60.0080.00818.28
8.3.50.0070.00718.03
8.3.40.0030.01318.66
8.3.30.0140.00018.40
8.3.20.0040.00418.85
8.3.10.0040.00423.64
8.3.00.0050.00323.48
8.2.180.0160.00318.18
8.2.170.0140.00022.96
8.2.160.0070.00718.68
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00018.03
8.2.120.0040.00426.35
8.2.110.0070.00320.93
8.2.100.0100.00317.84
8.2.90.0040.00417.63
8.2.80.0060.00317.97
8.2.70.0090.00017.80
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0040.00419.53
8.2.30.0040.00419.22
8.2.20.0070.00417.92
8.2.10.0060.00319.30
8.2.00.0030.00319.42
8.1.280.0070.01025.92
8.1.270.0080.00021.88
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0040.00420.66
8.1.230.0000.01120.96
8.1.220.0090.00017.74
8.1.210.0040.00418.89
8.1.200.0060.00317.35
8.1.190.0080.00316.99
8.1.180.0050.00318.10
8.1.170.0050.00218.56
8.1.160.0030.00518.88
8.1.150.0000.00718.79
8.1.140.0040.00417.65
8.1.130.0040.00419.00
8.1.120.0040.00417.44
8.1.110.0050.00517.39
8.1.100.0000.00817.48
8.1.90.0000.00817.40
8.1.80.0030.00617.50
8.1.70.0070.00017.41
8.1.60.0080.00617.61
8.1.50.0000.00817.40
8.1.40.0050.00317.41
8.1.30.0050.00317.61
8.1.20.0040.00417.59
8.1.10.0040.00417.52
8.1.00.0050.00217.30
8.0.300.0080.00019.93
8.0.290.0050.00316.75
8.0.280.0070.00018.45
8.0.270.0040.00417.27
8.0.260.0000.00617.29
8.0.250.0060.00316.96
8.0.240.0000.00616.98
8.0.230.0070.00016.84
8.0.220.0060.00016.90
8.0.210.0030.00516.84
8.0.200.0040.00416.91
8.0.190.0060.00316.88
8.0.180.0040.00416.77
8.0.170.0060.00316.93
8.0.160.0070.00016.86
8.0.150.0040.00416.89
8.0.140.0030.00516.73
8.0.130.0050.00013.23
8.0.120.0000.00716.84
8.0.110.0000.00716.72
8.0.100.0000.00716.93
8.0.90.0040.00417.00
8.0.80.0130.00616.87
8.0.70.0050.00216.83
8.0.60.0000.00716.82
8.0.50.0040.00416.92
8.0.30.0100.00917.06
8.0.20.0100.01217.40
8.0.10.0070.00016.88
8.0.00.0050.01216.68
7.4.330.0000.00515.55
7.4.320.0030.00316.37
7.4.300.0000.00616.54
7.4.290.0040.00416.47
7.4.280.0070.00016.33
7.4.270.0070.00016.36
7.4.260.0030.00316.47
7.4.250.0070.00016.44
7.4.240.0000.00816.59
7.4.230.0070.00016.44
7.4.220.0030.00516.54
7.4.210.0070.00916.53
7.4.200.0030.00316.24
7.4.160.0090.00816.42
7.4.140.0140.01117.86
7.4.130.0100.00716.34
7.4.120.0080.01016.43
7.4.110.0100.01416.46
7.4.100.0120.00916.34
7.4.90.0090.01016.23
7.4.80.0130.00719.39
7.4.70.0060.01016.56
7.4.60.0060.01016.41
7.4.50.0090.00516.48
7.4.40.0040.01316.37
7.4.00.0080.00914.73
7.3.330.0000.00513.00
7.3.320.0020.00213.00
7.3.310.0070.00016.04
7.3.300.0030.00316.04
7.3.290.0070.00016.05
7.3.280.0090.00816.20
7.3.260.0120.00616.29
7.3.240.0130.00816.24
7.3.230.0060.01116.36
7.3.210.0090.01316.43
7.3.200.0100.00716.39
7.3.190.0060.01716.09
7.3.180.0090.00916.24
7.3.170.0120.00616.21
7.3.160.0130.00316.58
7.3.120.0070.01114.62
7.3.110.0110.00714.93
7.3.100.0120.00314.56
7.3.90.0000.01314.71
7.3.80.0130.00314.69
7.3.70.0000.00914.81
7.3.60.0070.01114.48
7.3.50.0060.00614.84
7.3.40.0030.01014.77
7.3.30.0060.00614.79
7.3.20.0110.00316.58
7.3.10.0030.01516.60
7.3.00.0060.00316.53
7.2.330.0080.00816.56
7.2.320.0060.01316.54
7.2.310.0060.01216.66
7.2.300.0040.01416.27
7.2.290.0090.01316.57
7.2.250.0160.00314.53
7.2.240.0030.01714.50
7.2.230.0030.01314.79
7.2.220.0070.00414.84
7.2.210.0100.01014.91
7.2.200.0070.00714.55
7.2.190.0030.01314.82
7.2.180.0110.00414.89
7.2.170.0000.00914.94
7.2.110.0000.01516.19
7.2.70.0180.01115.03
7.2.60.0160.00615.00
7.2.50.0130.01314.77
7.2.40.0310.00915.11
7.2.30.1000.01014.81
7.2.20.0210.00714.84
7.2.10.0120.01215.03
7.2.00.0110.01114.80
7.1.330.0130.00015.72
7.1.320.0040.00715.45
7.1.310.0040.01515.78
7.1.300.0070.01115.62
7.1.290.0040.00715.76
7.1.280.0030.00615.65
7.1.270.0090.00615.64
7.1.260.0040.00415.57
7.1.200.0120.00015.81
7.1.170.0240.00413.67
7.1.160.0230.00313.76
7.1.150.0200.00614.04
7.1.140.0190.00813.94
7.1.130.0140.00713.90
7.1.120.0140.00713.75
7.1.110.0100.01013.94
7.1.100.0230.00313.98
7.1.90.0210.00713.73
7.1.80.0240.00313.78
7.1.70.0180.00913.56
7.1.60.0450.01031.67
7.1.50.0270.01231.83
7.1.40.0440.00931.83
7.1.30.0450.01031.65
7.1.20.0350.01931.67
7.1.10.0190.00713.77
7.1.00.0150.01213.49
5.3.290.0080.00313.14

preferences:
47.62 ms | 401 KiB | 5 Q