3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ErrorWrapper { public $context; public $var = self::INVALID; } stream_wrapper_register('error',ErrorWrapper::class); file_get_contents('error://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.40.0000.01518.57
8.3.30.0150.00018.57
8.3.20.0000.00820.70
8.3.10.0040.00420.66
8.3.00.0090.00019.51
8.2.170.0090.00622.96
8.2.160.0120.00319.29
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00821.11
8.2.120.0070.00026.35
8.2.110.0040.00419.27
8.2.100.0040.00717.91
8.2.90.0000.00818.16
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0040.00417.50
8.2.50.0030.00617.63
8.2.40.0000.00719.16
8.2.30.0050.00219.16
8.2.20.0040.00417.98
8.2.10.0040.00419.37
8.2.00.0040.00417.88
8.1.270.0050.00220.29
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.47
8.1.230.0040.00822.75
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00717.00
8.1.190.0060.00317.23
8.1.180.0070.00418.10
8.1.170.0000.00818.46
8.1.160.0000.00718.77
8.1.150.0040.00418.77
8.1.140.0040.00420.23
8.1.130.0050.00319.07
8.1.120.0000.00717.23
8.1.110.0000.00817.23
8.1.100.0000.00817.26
8.1.90.0040.00417.30
8.1.80.0040.00417.27
8.1.70.0000.00817.39
8.1.60.0100.00017.50
8.1.50.0000.00817.49
8.1.40.0030.00517.49
8.1.30.0030.00917.50
8.1.20.0000.00817.42
8.1.10.0000.00817.51
8.1.00.0040.00417.48
8.0.300.0040.00420.03
8.0.290.0050.00216.75
8.0.280.0030.00318.50
8.0.270.0000.00717.25
8.0.260.0070.00016.88
8.0.250.0070.00016.96
8.0.240.0070.00016.91
8.0.230.0000.00817.05
8.0.220.0040.00416.84
8.0.210.0030.00316.98
8.0.200.0060.00017.07
8.0.190.0030.00517.00
8.0.180.0000.00816.97
8.0.170.0030.00516.97
8.0.160.0000.00817.03
8.0.150.0080.00016.84
8.0.140.0000.00716.99
8.0.130.0070.00013.34
8.0.120.0040.00416.96
8.0.110.0040.00416.89
8.0.100.0040.00416.81
8.0.90.0070.00017.02
8.0.80.0100.01017.00
8.0.70.0000.00716.88
8.0.60.0040.00416.74
8.0.50.0000.00716.75
8.0.30.0100.00817.03
8.0.20.0110.00717.40
8.0.10.0040.00416.82
8.0.00.0130.00716.77
7.4.330.0060.00016.83
7.4.320.0000.00716.33
7.4.300.0000.00616.54
7.4.290.0070.00016.39
7.4.280.0050.00316.44
7.4.270.0050.00216.52
7.4.260.0000.00716.44
7.4.250.0030.00616.55
7.4.240.0090.00016.43
7.4.230.0000.00716.64
7.4.220.0050.00416.56
7.4.210.0090.00816.48
7.4.200.0000.00716.54
7.4.160.0100.00616.41
7.4.140.0110.00717.86
7.4.130.0030.01616.41
7.4.120.0150.00816.48
7.4.110.0030.01316.32
7.4.100.0040.01516.51
7.4.90.0140.00316.52
7.4.80.0120.01419.39
7.4.70.0100.00716.43
7.4.60.0040.01216.55
7.4.50.0160.00316.13
7.4.40.0120.00316.27
7.4.00.0030.01314.86
7.3.330.0060.00313.36
7.3.320.0050.00013.29
7.3.310.0030.00316.23
7.3.300.0050.00216.31
7.3.290.0000.00616.23
7.3.280.0090.01016.30
7.3.260.0100.00716.49
7.3.240.0090.01216.45
7.3.230.0150.00616.40
7.3.210.0100.01016.22
7.3.200.0140.00416.36
7.3.190.0110.00716.43
7.3.180.0060.00916.39
7.3.170.0100.01316.31
7.3.160.0060.01016.38
7.3.40.0130.00014.59
7.3.30.0030.00914.65
7.3.20.0130.00315.45
7.3.10.0140.00515.55
7.3.00.0610.00615.36
7.2.330.0030.01416.68
7.2.320.0040.01216.47
7.2.310.0080.00816.59
7.2.300.0100.00716.57
7.2.290.0070.01116.63
7.2.170.0090.01014.96
7.2.160.0090.00314.56
7.2.150.0570.00315.67
7.2.140.0160.00615.71
7.2.130.0670.00315.69
7.2.120.0580.00615.78
7.2.110.0050.01115.67
7.2.100.0650.00215.66
7.2.90.0460.00615.62
7.2.80.0590.00615.87
7.2.70.0550.00215.59
7.2.60.0390.01115.63
7.2.50.0120.00515.75
7.2.40.0610.00715.63
7.2.30.0560.00715.74
7.2.20.0510.01415.60
7.2.10.0580.00515.57
7.2.00.0420.00515.51
7.1.280.0090.01215.45
7.1.270.0110.00715.34
7.1.260.0050.00615.38
7.1.250.0560.00714.60

preferences:
49.81 ms | 400 KiB | 5 Q