3v4l.org

run code in 200+ PHP versions simultaneously
<?php try { foo(); } catch (Throwable $e) { echo $e->getMessage(), "\n"; } try { new bar(); } catch (Throwable $e) { echo $e->getMessage(), "\n"; } try { class foo { use bar; } } catch (Throwable $e) { echo $e->getMessage(), "\n"; }

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)
7.4.20.0120.00916.09
7.4.10.0090.00916.37
7.4.00.0050.01116.44
7.3.130.0090.00716.24
7.3.120.0090.00716.27
7.3.110.0090.00816.33
7.3.100.0090.00716.35
7.3.90.0060.01116.32
7.3.80.0100.00716.28
7.3.70.0090.00616.35
7.3.60.0080.00816.31
7.3.50.0100.00616.32
7.3.40.0090.00816.34
7.3.30.0080.01016.32
7.3.20.0080.00916.33
7.3.10.0110.00716.29
7.3.00.0080.00916.27
7.2.260.0090.00816.57
7.2.250.0080.00816.57
7.2.240.0080.01016.48
7.2.230.0080.00816.48
7.2.220.0090.00816.59
7.2.210.0080.00916.63
7.2.200.0070.00816.56
7.2.190.0110.00716.52
7.2.180.0100.00716.50
7.2.170.0080.00916.56
7.2.160.0070.01116.49
7.2.150.0110.00616.53
7.2.140.0080.01016.65
7.2.130.0080.00916.58
7.2.120.0150.00816.56
7.2.110.0120.00916.61
7.2.100.0090.00816.55
7.2.90.0100.00916.60
7.2.80.0070.01016.54
7.2.70.0090.01016.53
7.2.60.0080.01016.51
7.2.50.0090.00816.58
7.2.40.0090.00816.59
7.2.30.0080.00916.67
7.2.20.0110.00916.58
7.2.10.0080.01016.54
7.2.00.0100.00716.54
7.1.330.0030.01215.52
7.1.320.0070.01015.68
7.1.310.0120.00815.35
7.1.300.0160.00015.50
7.1.290.0040.01115.46
7.1.280.0130.00615.37
7.1.270.0170.00315.57
7.1.260.0130.00715.43
7.1.250.0090.00615.38
7.1.240.0030.01515.36
7.1.230.0130.00315.35
7.1.220.0070.01015.32
7.1.210.0150.00015.41
7.1.200.0140.00315.23
7.1.190.0130.00915.60
7.1.180.0080.01115.30
7.1.170.0040.01415.37
7.1.160.0030.01415.17
7.1.150.0090.00915.31
7.1.140.0070.01115.46
7.1.130.0090.00615.26
7.1.120.0090.00615.38
7.1.110.0100.00715.46
7.1.100.0070.01015.50
7.1.90.0070.00715.57
7.1.80.0070.00715.38
7.1.70.0070.00715.57
7.1.60.0060.00915.54
7.1.50.0110.00515.38
7.1.40.0050.01015.44
7.1.30.0070.00715.45
7.1.20.0030.01015.36
7.1.10.0000.01515.41
7.1.00.0130.00315.27
7.0.330.0100.00614.97
7.0.320.0140.01015.14
7.0.310.0100.00715.16
7.0.300.0080.00815.11
7.0.290.0100.00615.17
7.0.280.0030.01315.21
7.0.270.0110.00515.20
7.0.260.0060.00815.03
7.0.250.0120.00315.27
7.0.240.0090.00615.27
7.0.230.0100.00315.17
7.0.220.0000.01415.17
7.0.210.0100.00315.33
7.0.200.0100.00715.21
7.0.190.0030.01315.27
7.0.180.0060.00815.18
7.0.170.0130.00715.10
7.0.160.0040.01115.16
7.0.150.0060.00615.26
7.0.140.0110.00415.15
7.0.130.0080.00814.98
7.0.120.0090.00615.14
7.0.110.0100.01015.05
7.0.100.0070.01015.11
7.0.90.0060.00914.93
7.0.80.0120.00815.05
7.0.70.0100.00715.01
7.0.60.0130.00314.92
7.0.50.0270.00715.05
7.0.40.0130.00414.98
7.0.30.0040.01814.80
7.0.20.0090.00714.88
7.0.10.0050.01515.05
7.0.00.0130.00315.09
5.6.400.0090.00615.55
5.6.390.0120.01215.78
5.6.380.0100.00715.62
5.6.370.0100.00615.72
5.6.360.0070.01515.48
5.6.350.0000.01715.67
5.6.340.0070.01415.69
5.6.330.0100.00715.89
5.6.320.0000.01515.55
5.6.310.0140.00515.57
5.6.300.0030.01415.63
5.6.290.0080.00815.44
5.6.280.0070.01015.57
5.6.270.0110.01415.72
5.6.260.0120.00915.27
5.6.250.0100.00715.29
5.6.240.0060.01315.40
5.6.230.0040.01615.69
5.6.220.0120.00815.64
5.6.210.0090.01215.54
5.6.200.0090.00915.63
5.6.190.0040.01515.50
5.6.180.0000.02015.61
5.6.170.0120.00615.26
5.6.160.0100.01015.33
5.6.150.0160.00315.57
5.6.140.0120.00615.76
5.6.130.0120.00615.46
5.6.120.0090.00915.77
5.6.110.0090.01215.61
5.6.100.0060.00915.18
5.6.90.0120.00615.42
5.6.80.0060.01215.25
5.6.70.0080.00915.56
5.6.60.0050.01515.34
5.6.50.0060.01915.24
5.6.40.0090.00615.32
5.6.30.0190.00615.28
5.6.20.0100.00715.39
5.6.10.0060.00915.49
5.6.00.0060.01015.55
5.5.380.0160.01215.50
5.5.370.0070.01515.58
5.5.360.0000.02315.80
5.5.350.0170.00715.53
5.5.340.0110.01115.48
5.5.330.0140.00915.40
5.5.320.0100.01415.70
5.5.310.0120.01215.64
5.5.300.0220.00315.57
5.5.290.0120.01215.64
5.5.280.0130.01015.63
5.5.270.0200.00715.88
5.5.260.0140.00715.59
5.5.250.0190.01115.48
5.5.240.0090.01315.55
5.5.230.0170.00715.53
5.5.220.0200.00715.64
5.5.210.0180.00415.54
5.5.200.0050.01615.51
5.5.190.0270.00615.51
5.5.180.0170.00415.59
5.5.170.0160.01115.56
5.5.160.0170.01015.50
5.5.150.0120.01115.30
5.5.140.0130.01315.54
5.5.130.0140.00915.43
5.5.120.0040.01815.67
5.5.110.0160.01215.52
5.5.100.0100.01315.48
5.5.90.0060.01615.57
5.5.80.0080.01315.40
5.5.70.0130.00915.59
5.5.60.0160.00815.61
5.5.50.0120.01615.50
5.5.40.0160.00815.53
5.5.30.0160.01015.68
5.5.20.0130.01315.66
5.5.10.0190.01015.49
5.5.00.0040.01715.38
5.4.450.0210.00312.38
5.4.440.0140.00612.32
5.4.430.0110.00512.45
5.4.420.0080.01612.43
5.4.410.0150.00412.66
5.4.400.0130.00712.39
5.4.390.0130.00312.47
5.4.380.0070.01012.58
5.4.370.0070.01312.41
5.4.360.0090.01212.35
5.4.350.0080.01212.29
5.4.340.0190.00012.41
5.4.330.0040.01212.34
5.4.320.0150.01112.39
5.4.310.0060.01212.41
5.4.300.0140.00312.35
5.4.290.0140.00312.62
5.4.280.0130.00712.54
5.4.270.0130.00712.36
5.4.260.0060.01012.22
5.4.250.0120.00812.55
5.4.240.0100.00712.34
5.4.230.0090.00912.60
5.4.220.0100.01012.21
5.4.210.0130.00812.44
5.4.200.0060.01312.59
5.4.190.0150.00912.36
5.4.180.0110.01112.33
5.4.170.0120.00812.47
5.4.160.0040.01212.24
5.4.150.0040.01312.38
5.4.140.0000.01612.41
5.4.130.0100.01012.55
5.4.120.0060.01012.36
5.4.110.0100.00712.43
5.4.100.0060.00912.46
5.4.90.0090.00612.53
5.4.80.0130.00512.41
5.4.70.0160.00012.56
5.4.60.0070.01012.36
5.4.50.0110.00512.34
5.4.40.0070.01112.47
5.4.30.0140.00612.48
5.4.20.0140.00612.41
5.4.10.0140.00812.55
5.4.00.0160.00612.42
5.3.290.0130.00512.93
5.3.280.0120.00412.79
5.3.270.0170.00312.81
5.3.260.0120.01212.77
5.3.250.0130.00612.77
5.3.240.0080.01312.57
5.3.230.0100.00712.72
5.3.220.0140.00312.64
5.3.210.0080.00812.64
5.3.200.0100.00612.77
5.3.190.0130.00312.70
5.3.180.0140.00312.98
5.3.170.0050.01412.97
5.3.160.0140.00712.89
5.3.150.0080.01112.82
5.3.140.0090.01112.77
5.3.130.0110.00812.75
5.3.120.0160.00312.82
5.3.110.0090.00912.89
5.3.100.0150.00312.82
5.3.90.0110.00813.01
5.3.80.0090.00912.69
5.3.70.0100.00712.67
5.3.60.0090.00612.75
5.3.50.0080.00812.68
5.3.40.0060.01012.77
5.3.30.0130.00412.76
5.3.20.0100.01312.75
5.3.10.0090.01212.56
5.3.00.0130.00412.76
5.2.170.0100.00311.95
5.2.160.0110.00311.86
5.2.150.0070.00711.83
5.2.140.0080.00811.83
5.2.130.0100.00511.83
5.2.120.0100.00811.83
5.2.110.0080.01111.83
5.2.100.0080.00812.01
5.2.90.0080.00811.83
5.2.80.0120.00311.83
5.2.70.0130.00411.83
5.2.60.0190.00011.83
5.2.50.0210.00011.83
5.2.40.0110.00511.83
5.2.30.0040.01311.83
5.2.20.0110.00411.83
5.2.10.0070.00711.83
5.2.00.0100.00311.83
5.1.60.0050.00711.83
5.1.50.0030.00911.83
5.1.40.0080.00511.83
5.1.30.0030.01011.83
5.1.20.0060.00911.83
5.1.10.0120.00311.83
5.1.00.0070.01011.83
5.0.50.0040.00711.83
5.0.40.0120.00011.83
5.0.30.0090.00211.83
5.0.20.0090.00311.83
5.0.10.0000.01111.83
5.0.00.0040.01111.83
4.4.90.0070.00411.83
4.4.80.0050.00711.83
4.4.70.0000.00811.83
4.4.60.0070.00011.83
4.4.50.0070.00011.83
4.4.40.0050.00511.83
4.4.30.0040.00411.83
4.4.20.0000.00711.83
4.4.10.0050.00511.83
4.4.00.0050.00111.83
4.3.110.0050.00311.83
4.3.100.0020.00511.83
4.3.90.0040.00411.83
4.3.80.0050.00211.83
4.3.70.0040.00411.83
4.3.60.0000.00811.83
4.3.50.0060.00411.83
4.3.40.0080.00211.83
4.3.30.0030.00311.83
4.3.20.0000.00611.83
4.3.10.0040.00211.83
4.3.00.0070.00011.83