3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar{ function __get($a){ throw new Error("no prop error\n"); } } $bar = new Bar; var_dump(isset($bar->foo) ? $bar->foo : "qux"); var_dump($bar->foo ?? "qux");

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.0090.00618.78
8.3.30.0120.00318.84
8.3.20.0050.00320.86
8.3.10.0090.00319.96
8.3.00.0080.00021.72
8.2.170.0140.00718.98
8.2.160.0100.00722.96
8.2.150.0040.00424.18
8.2.140.0160.00324.66
8.2.130.0050.00326.16
8.2.120.0090.00620.92
8.2.110.0100.00720.87
8.2.100.0040.00817.78
8.2.90.0030.00617.75
8.2.80.0040.00418.77
8.2.70.0000.00817.50
8.2.60.0040.00417.63
8.2.50.0040.00417.63
8.2.40.0050.00219.17
8.2.30.0000.00719.05
8.2.20.0040.00418.00
8.2.10.0000.00719.25
8.2.00.0050.00318.08
8.1.270.0030.00622.46
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0050.00521.38
8.1.230.0040.00719.05
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0080.00017.36
8.1.190.0080.00017.55
8.1.180.0000.00918.10
8.1.170.0040.00418.64
8.1.160.0040.00418.93
8.1.150.0000.00718.93
8.1.140.0000.00718.83
8.1.130.0000.00720.13
8.1.120.0000.00717.52
8.1.110.0000.00717.46
8.1.100.0070.00017.42
8.1.90.0000.00717.32
8.1.80.0000.00717.43
8.1.70.0020.00517.45
8.1.60.0040.00417.61
8.1.50.0040.00417.56
8.1.40.0060.00317.48
8.1.30.0030.00517.61
8.1.20.0000.01217.53
8.1.10.0040.00417.47
8.1.00.0050.00317.51
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00718.29
8.0.270.0030.00317.24
8.0.260.0060.00018.34
8.0.250.0050.00216.97
8.0.240.0000.01016.91
8.0.230.0000.00716.87
8.0.220.0040.00416.87
8.0.210.0030.00316.78
8.0.200.0060.00316.96
8.0.190.0030.00516.85
8.0.180.0060.00316.93
8.0.170.0030.00716.92
8.0.160.0040.00416.92
8.0.150.0000.00717.01
8.0.140.0040.00416.90
8.0.130.0060.00013.39
8.0.120.0040.00416.83
8.0.110.0000.00816.84
8.0.100.0040.00416.93
8.0.90.0030.00516.78
8.0.80.0080.00816.90
8.0.70.0080.00017.02
8.0.60.0000.00716.79
8.0.50.0050.00316.98
8.0.30.0120.00817.25
8.0.20.0100.01017.18
8.0.10.0000.00716.95
8.0.00.0110.00816.88
7.4.330.0040.00015.55
7.4.320.0030.00316.58
7.4.300.0030.00316.59
7.4.290.0040.00416.55
7.4.280.0030.00616.40
7.4.270.0030.00316.42
7.4.260.0070.00016.47
7.4.250.0030.00316.57
7.4.240.0000.00716.52
7.4.230.0070.00016.63
7.4.220.0000.00716.61
7.4.210.0040.01416.43
7.4.200.0070.00016.64
7.4.160.0110.00516.60
7.4.140.0090.00917.86
7.4.130.0150.00916.48
7.4.120.0060.01116.67
7.4.110.0130.00316.54
7.4.100.0070.01116.43
7.4.90.0070.01016.57
7.4.80.0080.01319.39
7.4.70.0090.00916.57
7.4.60.0140.00416.47
7.4.50.0050.00816.50
7.4.40.0030.01316.20
7.4.10.0030.01415.09
7.4.00.0090.00714.99
7.3.330.0000.00513.29
7.3.320.0050.00013.44
7.3.310.0030.00316.39
7.3.300.0070.00016.41
7.3.290.0000.00716.37
7.3.280.0070.00816.34
7.3.260.0090.01016.43
7.3.240.0080.01016.44
7.3.230.0030.01316.54
7.3.210.0110.00716.50
7.3.200.0140.00816.36
7.3.190.0040.01616.50
7.3.180.0070.01316.29
7.3.170.0120.00616.36
7.3.160.0110.01116.53
7.3.130.0090.00614.59
7.3.120.0040.01614.82
7.3.110.0120.00314.78
7.3.100.0000.01114.77
7.3.90.0100.00715.11
7.3.80.0110.00414.59
7.3.70.0030.00714.83
7.3.60.0060.00914.97
7.3.50.0060.00614.81
7.3.40.0030.01014.86
7.3.30.0030.00614.89
7.3.20.0080.00316.54
7.3.10.0200.00715.59
7.3.00.0360.00515.73
7.2.330.0080.00816.80
7.2.320.0120.00416.87
7.2.310.0030.01716.77
7.2.300.0080.00816.72
7.2.290.0080.01416.73
7.2.260.0060.01215.02
7.2.250.0090.00914.84
7.2.240.0060.00914.84
7.2.230.0000.01215.23
7.2.220.0030.01015.27
7.2.210.0070.00715.07
7.2.200.0060.00314.99
7.2.190.0000.00915.16
7.2.180.0060.00915.00
7.2.170.0090.00015.21
7.2.160.0030.01314.96
7.2.150.0040.00916.71
7.2.140.0040.01116.91
7.2.130.0390.00815.91
7.2.120.0380.00615.96
7.2.110.0300.00616.03
7.2.100.0280.00816.00
7.2.90.0550.01015.87
7.2.80.0290.00815.90
7.2.70.0260.01315.96
7.2.60.0230.00915.79
7.2.50.0250.00715.75
7.2.40.0200.01016.02
7.2.30.0240.00615.91
7.2.20.0230.01315.84
7.2.10.0260.01015.91
7.2.00.0230.00815.90
7.1.330.0070.00715.67
7.1.320.0090.00615.76
7.1.310.0030.01015.60
7.1.300.0070.00415.51
7.1.290.0000.01015.93
7.1.280.0070.00315.68
7.1.270.0060.01015.69
7.1.260.0070.00715.63
7.1.250.0200.01214.57
7.1.240.0030.01015.80
7.1.230.0030.01015.89
7.1.220.0040.00415.82
7.1.210.0000.01815.67
7.1.200.0030.00715.85
7.1.190.0100.00015.77
7.1.180.0070.00715.59
7.1.170.0080.00015.63
7.1.160.0040.00715.72
7.1.150.0130.00315.55
7.1.140.0030.00615.81
7.1.130.0040.00415.66
7.1.120.0070.00715.68
7.1.110.0060.00615.47
7.1.100.0040.00715.95
7.1.90.0060.00615.52
7.1.80.0000.01515.92
7.1.70.0050.00515.80
7.1.60.0000.00815.52
7.1.50.0100.00315.66
7.1.40.0030.00915.66
7.1.30.0140.00015.82
7.1.20.0100.00315.68
7.1.10.0060.00315.69
7.1.00.0000.01115.67

preferences:
64.17 ms | 400 KiB | 5 Q