3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(){} f(print "Jack\n"); $a=null; f(print ++$a . "\n"); print strlen(4) . "\n"; class C { function C(){} } new C(print ++$a); $a = 10; echo "\nCount: ",count($a),"\n"; $n=NULL; $nn = $n; --$nn; $n++; var_dump($nn,$n); $s = "mehea"; $s++; var_dump($s); $s--; var_dump($s); class A { } class B extends A { public function __construct() { // make sure parent constructor gets called if someone adds one parent::__construct(); } } new B();

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.60.0060.00916.88
8.3.50.0260.01321.99
8.3.40.0110.00718.79
8.3.30.0100.00318.92
8.3.20.0060.00320.07
8.3.10.0080.00020.71
8.3.00.0080.00019.38
8.2.180.0070.00718.38
8.2.170.0040.01122.96
8.2.160.0070.00720.54
8.2.150.0000.00824.18
8.2.140.0000.00924.66
8.2.130.0000.00826.16
8.2.120.0080.00019.77
8.2.110.0070.00421.00
8.2.100.0120.00017.65
8.2.90.0000.00718.28
8.2.80.0080.00017.97
8.2.70.0040.00418.03
8.2.60.0050.00317.93
8.2.50.0070.00019.28
8.2.40.0030.00620.59
8.2.30.0080.00018.10
8.2.20.0040.00417.75
8.2.10.0020.00518.11
8.2.00.0040.00417.79
8.1.280.0120.00325.92
8.1.270.0040.00420.46
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00023.91
8.1.230.0070.00320.85
8.1.220.0050.00317.79
8.1.210.0040.00418.89
8.1.200.0000.00917.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0000.00718.88
8.1.150.0000.00718.99
8.1.140.0050.00317.51
8.1.130.0000.00817.80
8.1.120.0000.00717.46
8.1.110.0080.00017.41
8.1.100.0000.00717.40
8.1.90.0040.00417.43
8.1.80.0040.00417.44
8.1.70.0070.00017.41
8.1.60.0000.01017.57
8.1.50.0060.00317.54
8.1.40.0030.00517.57
8.1.30.0090.00017.63
8.1.20.0000.00717.63
8.1.10.0030.00517.51
8.1.00.0030.00617.49
8.0.300.0000.00720.02
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0070.00017.16
8.0.260.0030.00317.16
8.0.250.0060.00017.00
8.0.240.0030.00317.02
8.0.230.0040.00417.01
8.0.220.0050.00316.96
8.0.210.0060.00016.83
8.0.200.0030.00317.07
8.0.190.0040.00417.07
8.0.180.0000.00716.85
8.0.170.0070.00016.99
8.0.160.0070.00016.96
8.0.150.0070.00016.88
8.0.140.0040.00416.76
8.0.130.0040.00413.34
8.0.120.0000.00816.99
8.0.110.0040.00416.85
8.0.100.0040.00416.77
8.0.90.0040.00416.78
8.0.80.0110.00416.91
8.0.70.0040.00416.84
8.0.60.0030.00516.93
8.0.50.0040.00416.92
8.0.30.0080.01017.06
8.0.20.0110.00917.40
8.0.10.0000.00716.94
8.0.00.0090.00917.01
7.4.330.0070.00015.02
7.4.320.0030.00316.64
7.4.300.0060.00016.64
7.4.290.0030.00316.44
7.4.280.0050.00316.55
7.4.270.0070.00016.48
7.4.260.0050.00216.59
7.4.250.0050.00216.42
7.4.240.0060.00316.43
7.4.230.0030.00316.60
7.4.220.0130.00916.63
7.4.210.0060.00916.56
7.4.200.0070.00016.58
7.4.160.0080.00816.67
7.4.150.0140.00517.40
7.4.140.0060.01217.86
7.4.130.0090.00816.48
7.4.120.0090.00716.55
7.4.110.0090.00916.48
7.4.100.0120.01216.53
7.4.90.0100.01016.63
7.4.80.0100.01019.39
7.4.70.0050.01016.50
7.4.60.0120.00616.48
7.4.50.0000.00716.45
7.4.40.0080.00816.44
7.4.30.0090.00916.57
7.4.10.0060.01315.21
7.4.00.0060.01114.78
7.3.330.0000.00513.29
7.3.320.0030.00313.31
7.3.310.0000.00816.32
7.3.300.0000.00616.42
7.3.290.0060.00816.41
7.3.280.0080.00716.43
7.3.270.0040.01417.40
7.3.260.0110.00616.42
7.3.250.0060.01216.47
7.3.240.0090.00916.41
7.3.230.0100.00716.52
7.3.210.0060.00916.48
7.3.200.0120.00616.45
7.3.190.0090.00916.39
7.3.180.0140.00716.35
7.3.170.0100.00716.43
7.3.160.0140.00716.55
7.3.130.0090.00614.75
7.3.120.0060.01114.86
7.3.110.0110.00814.80
7.3.100.0060.00914.93
7.3.90.0070.00714.84
7.3.80.0050.00714.89
7.3.70.0070.00414.92
7.3.60.0030.01114.86
7.3.50.0040.00914.94
7.3.40.0020.01014.91
7.3.30.0070.00314.95
7.3.20.0070.00716.73
7.3.10.0030.00916.74
7.3.00.0070.00416.78
7.2.330.0090.00916.71
7.2.320.0150.00316.63
7.2.310.0140.00316.29
7.2.300.0080.00816.33
7.2.290.0140.00916.55
7.2.260.0090.00614.98
7.2.250.0070.01115.08
7.2.240.0040.01314.95
7.2.230.0060.00715.06
7.2.220.0090.00615.04
7.2.210.0020.01115.02
7.2.200.0050.00815.13
7.2.190.0050.00915.01
7.2.180.0050.00714.77
7.2.170.0010.01014.99
7.2.160.0040.00915.12
7.2.150.0060.00816.90
7.2.140.0040.00916.91
7.2.130.0050.00616.88
7.2.120.0040.00516.94
7.2.110.0050.00816.73
7.2.100.0050.01216.93
7.2.90.0110.00316.74
7.2.80.0110.00316.88
7.2.70.0080.00716.84
7.2.60.0040.01016.91
7.2.50.0050.00916.79
7.2.40.0070.00516.82
7.2.30.0050.01416.95
7.2.20.0050.00816.90
7.2.10.0050.00616.95
7.2.00.0050.00817.61
7.1.330.0120.00415.79
7.1.320.0090.00315.92
7.1.310.0010.01215.95
7.1.300.0040.00415.75
7.1.290.0060.00615.90
7.1.280.0070.00615.78
7.1.270.0050.00615.82
7.1.260.0050.00815.94
7.1.250.0060.00815.78
7.1.240.0040.00915.63
7.1.230.0030.00815.69
7.1.220.0050.00915.82
7.1.210.0060.00815.82
7.1.200.0060.00615.73
7.1.190.0020.01115.91
7.1.180.0050.01015.79
7.1.170.0050.00815.75
7.1.160.0050.00715.79
7.1.150.0080.00815.77
7.1.140.0050.00715.83
7.1.130.0020.00715.75
7.1.120.0050.00515.68
7.1.110.0100.00715.76
7.1.100.0210.00815.91
7.1.90.0060.00815.85
7.1.80.0030.00815.83
7.1.70.0070.00516.13
7.1.60.0090.00916.92
7.1.50.0080.00716.15
7.1.40.0090.00215.73
7.1.30.0080.00415.69
7.1.20.0060.00815.78
7.1.10.0040.00815.67
7.1.00.0070.03018.07
7.0.330.0040.00715.38
7.0.320.0050.00915.41
7.0.310.0080.00515.37
7.0.300.0050.00315.46
7.0.290.0070.00715.38
7.0.280.0050.00715.41
7.0.270.0020.01215.49
7.0.260.0080.00615.48
7.0.250.0030.00915.50
7.0.240.0070.00815.51
7.0.230.0030.00715.42
7.0.220.0070.00715.34
7.0.210.0070.00615.52
7.0.200.0020.00715.82
7.0.190.0040.00615.56
7.0.180.0060.00615.28
7.0.170.0050.01015.35
7.0.160.0000.01115.21
7.0.150.0020.00815.36
7.0.140.0080.02517.64
7.0.130.0060.00615.50
7.0.120.0110.00215.32
7.0.110.0040.00815.34
7.0.100.0040.00715.22
7.0.90.0050.00615.54
7.0.80.0030.01115.47
7.0.70.0090.00315.40
7.0.60.0070.03216.83
7.0.50.0080.02716.20
7.0.40.0030.03615.77
7.0.30.0080.01915.70
7.0.20.0140.02515.74
7.0.10.0050.02115.80
7.0.00.0070.01915.71
5.6.400.0090.00314.56
5.6.390.0070.00514.50
5.6.380.0050.00714.18
5.6.370.0020.00914.38
5.6.360.0040.00814.65
5.6.350.0050.01313.98
5.6.340.0050.00814.50
5.6.330.0060.00714.11
5.6.320.0090.00814.37
5.6.310.0070.00514.24
5.6.300.0030.01214.15
5.6.290.0070.00914.32
5.6.280.0090.02916.45
5.6.270.0080.00714.25
5.6.260.0020.01114.33
5.6.250.0070.00414.55
5.6.240.0040.00714.23
5.6.230.0090.00214.22
5.6.220.0040.00914.29
5.6.210.0080.02616.43
5.6.200.0070.02715.67
5.6.190.0060.03316.26
5.6.180.0080.03416.41
5.6.170.0170.02416.35
5.6.160.0060.03516.35
5.6.150.0060.02015.64
5.6.140.0070.03215.53
5.6.130.0020.01915.71
5.6.120.0050.03416.42
5.6.110.0070.02216.71
5.6.100.0120.02916.68
5.6.90.0080.02316.56
5.6.80.0080.03016.27
5.6.70.0090.01216.33
5.6.60.0080.00614.29
5.6.50.0060.00614.24
5.6.40.0030.01214.34
5.6.30.0030.01114.21
5.6.20.0080.00314.35
5.6.10.0050.00914.30
5.6.00.0020.01414.31
5.5.380.0050.00614.26
5.5.370.0050.00814.42
5.5.360.0060.00414.37
5.5.350.0150.02916.30
5.5.340.0060.02615.57
5.5.330.0070.03216.28
5.5.320.0150.02016.21
5.5.310.0080.02116.30
5.5.300.0050.02115.54
5.5.290.0090.02815.46
5.5.280.0080.03216.38
5.5.270.0050.02316.32
5.5.260.0060.03116.44
5.5.250.0040.03416.41
5.5.240.1090.01816.17
5.5.230.0070.00714.10
5.5.220.0040.00514.04
5.5.210.0060.00814.20
5.5.200.0050.01114.23
5.5.190.0040.00614.30
5.5.180.0100.00614.37
5.5.170.0020.01014.31
5.5.160.0080.00414.02
5.5.150.0080.00814.03
5.5.140.0110.00514.24
5.5.130.0080.00814.15
5.5.120.0070.00314.27
5.5.110.0020.01013.99
5.5.100.0050.01014.18
5.5.90.0030.01214.08
5.5.80.0040.01114.26
5.5.70.0040.00714.24
5.5.60.0060.00514.14
5.5.50.0070.00714.36
5.5.40.0030.01014.37
5.5.30.0080.00514.23
5.5.20.0050.00714.21
5.5.10.0050.00814.07
5.5.00.0070.00813.95
5.4.450.0340.02214.62
5.4.440.0310.02414.81
5.4.430.0300.02014.59
5.4.420.0080.02114.72
5.4.410.0080.02514.69
5.4.400.0200.02114.38
5.4.390.0210.01814.34
5.4.380.0190.02114.39
5.4.370.0090.02714.34
5.4.360.0190.02714.28
5.4.350.0070.02512.23
5.4.340.0040.02012.26
5.4.330.0030.00512.30
5.4.320.0060.04112.36
5.4.310.0070.01812.31
5.4.300.0050.02212.28
5.4.290.0050.02612.32
5.4.280.0100.02712.31
5.4.270.0060.02412.24
5.4.260.0030.02412.38
5.4.250.0060.02212.34
5.4.240.0080.02312.33
5.4.230.0060.01912.35
5.4.220.0060.01812.30
5.4.210.0080.01912.28
5.4.200.0040.03012.33
5.4.190.0050.01812.28
5.4.180.0090.02212.32
5.4.170.0040.01812.19
5.4.160.0030.02012.40
5.4.150.0030.02012.27
5.4.140.0060.02012.23
5.4.130.0080.01712.11
5.4.120.0090.01812.25
5.4.110.0040.02312.15
5.4.100.0040.01812.11
5.4.90.0050.02012.14
5.4.80.0040.02112.22
5.4.70.0060.02712.23
5.4.60.0080.02612.29
5.4.50.0100.02112.25
5.4.40.0040.01812.21
5.4.30.0080.01412.15
5.4.20.0070.01612.22
5.4.10.0060.03312.23
5.4.00.0070.02412.02
5.3.290.0070.06812.80
5.3.280.0110.05712.71
5.3.270.0110.05312.72
5.3.260.0090.05912.71
5.3.250.0080.05612.72
5.3.240.0090.05312.72
5.3.230.0160.11712.71
5.3.220.0180.08212.68
5.3.210.0100.04912.68
5.3.200.0110.06312.68
5.3.190.0170.05212.68
5.3.180.0100.04812.67
5.3.170.0180.05912.67
5.3.160.0110.07412.68
5.3.150.0110.05312.67
5.3.140.0070.05312.66
5.3.130.0110.03512.66
5.3.120.0100.03912.66
5.3.110.0080.05912.66
5.3.100.0090.03912.13
5.3.90.0040.04612.11
5.3.80.0080.03812.09
5.3.70.0100.03712.09
5.3.60.0050.04412.08
5.3.50.0050.04212.03
5.3.40.0070.05212.03
5.3.30.0070.05911.99
5.3.20.0110.04511.77
5.3.10.0080.03711.73
5.3.00.0070.03911.72
5.2.170.0060.0349.23
5.2.160.0100.0519.22
5.2.150.0030.0419.23
5.2.140.0070.0339.22
5.2.130.0050.0429.18
5.2.120.0050.0299.18
5.2.110.0040.0319.19
5.2.100.0050.0319.18
5.2.90.0090.0279.18
5.2.80.0060.0359.18
5.2.70.0100.0379.18
5.2.60.0070.0369.13
5.2.50.0100.0549.10
5.2.40.0060.0439.07
5.2.30.0070.0309.06
5.2.20.0040.0349.04
5.2.10.0090.0368.95
5.2.00.0060.0398.82
5.1.60.0050.0298.09
5.1.50.0070.0268.09
5.1.40.0050.0268.07
5.1.30.0020.0318.43
5.1.20.0080.0278.45
5.1.10.0060.0268.17
5.1.00.0100.0268.17
5.0.50.0020.0286.66
5.0.40.0130.0736.52
5.0.30.0070.0366.32
5.0.20.0030.0246.30
5.0.10.0060.0236.27
5.0.00.0060.0336.27
4.4.90.0050.0134.78
4.4.80.0030.0214.75
4.4.70.0040.0274.75
4.4.60.0080.0224.75
4.4.50.0080.0194.77
4.4.40.0010.0304.71
4.4.30.0060.0144.76
4.4.20.0050.0204.84
4.4.10.0070.0194.85
4.4.00.0020.0284.76
4.3.110.0030.0174.67
4.3.100.0050.0184.66
4.3.90.0040.0214.64
4.3.80.0070.0394.59
4.3.70.0040.0184.63
4.3.60.0060.0204.63
4.3.50.0070.0194.63
4.3.40.0050.0274.54
4.3.30.0000.0303.32
4.3.20.0040.0193.30
4.3.10.0060.0193.25
4.3.00.0130.0236.71

preferences:
57.68 ms | 401 KiB | 5 Q