3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = fopen('/tmp', 'r'); var_dump($f); define('FOO_BAR', $f); var_dump(FOO_BAR);

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.110.0060.01316.62
8.3.100.0030.00616.52
8.3.90.0030.00626.77
8.3.80.0090.00018.30
8.3.70.0120.00318.31
8.3.60.0040.01116.50
8.3.50.0110.00418.20
8.3.40.0090.00618.84
8.3.30.0140.00018.63
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.230.0040.00420.94
8.2.220.0030.00624.06
8.2.210.0040.00426.77
8.2.200.0040.00718.16
8.2.190.0130.00718.22
8.2.180.0150.00425.92
8.2.170.0070.01318.79
8.2.160.0030.01222.96
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.76
8.2.110.0150.00421.11
8.2.100.0080.00417.78
8.2.90.0040.00417.75
8.2.80.0000.00818.80
8.2.70.0080.00017.50
8.2.60.0050.00317.93
8.2.50.0040.00417.93
8.2.40.0030.00519.66
8.2.30.0060.00317.66
8.2.20.0070.00020.63
8.2.10.0000.00817.71
8.2.00.0030.00619.31
8.1.290.0000.00930.84
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00022.46
8.1.230.0040.00720.91
8.1.220.0040.00417.79
8.1.210.0000.00918.77
8.1.200.0040.00417.23
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0000.00717.62
8.1.160.0030.00518.95
8.1.150.0040.00418.57
8.1.140.0030.00517.45
8.1.130.0070.00017.38
8.1.120.0060.00317.47
8.1.110.0000.00817.30
8.1.100.0000.00717.48
8.1.90.0030.00317.43
8.1.80.0040.00417.37
8.1.70.0000.00817.37
8.1.60.0000.00817.59
8.1.50.0050.00317.45
8.1.40.0030.00617.54
8.1.30.0000.00817.64
8.1.20.0040.00417.55
8.1.10.0100.00317.44
8.1.00.0070.00017.25
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0030.00318.59
8.0.270.0040.00416.89
8.0.260.0070.00016.89
8.0.250.0030.00317.03
8.0.240.0030.00516.94
8.0.230.0030.00317.01
8.0.220.0030.00316.87
8.0.210.0040.00416.94
8.0.200.0060.00016.93
8.0.190.0080.00016.92
8.0.180.0040.00417.00
8.0.170.0000.00917.01
8.0.160.0050.00317.05
8.0.150.0000.00816.91
8.0.140.0040.00416.84
8.0.130.0100.01016.93
8.0.120.0160.00316.95
8.0.110.0150.00316.91
8.0.100.0160.00316.75
8.0.90.0160.00216.87
8.0.80.0210.00016.97
8.0.70.0180.00016.83
8.0.60.0130.00416.98
8.0.50.0130.00616.74
8.0.30.0090.00916.68
8.0.20.0090.00916.88
8.0.10.0150.00316.97
8.0.00.0040.00817.05
7.4.330.0050.00015.55
7.4.320.0070.00016.50
7.4.300.0030.00316.46
7.4.290.0000.00716.54
7.4.280.0030.00616.61
7.4.270.0080.00016.51
7.4.260.0210.00016.45
7.4.250.0180.00616.54
7.4.240.0210.00016.45
7.4.230.0130.00016.44
7.4.220.0170.00216.48
7.4.210.0160.00516.46
7.4.200.0150.00316.40
7.4.190.0120.00516.38
7.4.180.0200.00016.50
7.4.160.0180.00416.48
7.4.150.0170.00516.55
7.4.140.0230.00016.35
7.4.130.0140.00716.43
7.4.120.0210.00016.42
7.4.110.0220.00016.32
7.4.100.0190.00316.56
7.4.90.0180.00516.51
7.4.80.0170.00416.23
7.4.70.0170.00616.29
7.4.60.0120.00916.11
7.4.50.0110.00416.04
7.4.40.0060.00615.91
7.4.30.0110.00016.00
7.4.20.0080.00516.05
7.4.10.0150.00016.02
7.4.00.0110.00616.30
7.3.330.0140.00616.02
7.3.320.0180.00016.04
7.3.310.0050.01115.96
7.3.300.0070.00415.53
7.3.290.0040.00616.05
7.3.280.0100.00015.68
7.3.270.0080.00315.88
7.3.260.0080.00315.98
7.3.250.0090.00615.71
7.3.240.0120.00615.60
7.3.230.0080.00615.86
7.3.220.0110.00615.70
7.3.210.0100.01015.69
7.3.200.0240.00015.46
7.3.190.0140.00815.91
7.3.180.0160.00615.63
7.3.170.0130.00416.05
7.3.160.0140.00715.27
7.3.150.0150.00015.78
7.3.140.0110.00715.63
7.3.130.0140.00416.05

preferences:
28.64 ms | 403 KiB | 5 Q