3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $baz = 'foobar'; public function bar() { self::functionName(); $this->functionName(); } public function functionName() { echo "foobar\n"; } } $f = new Foo(); $f->bar(); $f::functionName();

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.0120.00318.94
8.3.30.0140.00018.84
8.3.20.0050.00220.30
8.3.10.0030.00623.61
8.3.00.0040.00419.69
8.2.170.0100.00622.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00017.75
8.2.110.0040.00722.13
8.2.100.0030.00917.75
8.2.90.0000.00819.34
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0050.00318.04
8.2.50.0080.00018.07
8.2.40.0000.00821.13
8.2.30.0040.00420.52
8.2.20.0000.00717.55
8.2.10.0050.00317.98
8.2.00.0040.00417.97
8.1.270.0100.00723.98
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0100.00022.42
8.1.230.0080.00417.42
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00820.38
8.1.160.0070.00021.98
8.1.150.0070.00018.73
8.1.140.0040.00419.44
8.1.130.0080.00017.62
8.1.120.0000.00717.40
8.1.110.0000.00717.38
8.1.100.0000.00717.40
8.1.90.0000.00717.29
8.1.80.0030.00617.39
8.1.70.0000.00717.35
8.1.60.0030.00617.47
8.1.50.0000.00917.43
8.1.40.0000.01117.41
8.1.30.0130.00017.62
8.1.20.0040.00417.54
8.1.10.0000.00817.60
8.1.00.0070.00017.43
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0000.00717.16
8.0.260.0030.00317.25
8.0.250.0000.00816.85
8.0.240.0060.00017.02
8.0.230.0000.00716.99
8.0.220.0000.00716.88
8.0.210.0000.00716.84
8.0.200.0030.00316.96
8.0.190.0040.00416.97
8.0.180.0040.00416.85
8.0.170.0000.00716.89
8.0.160.0060.00316.93
8.0.150.0000.00716.74
8.0.140.0040.00416.88
8.0.130.0070.00013.23
8.0.120.0040.00416.87
8.0.110.0040.00416.85
8.0.100.0000.00716.84
8.0.90.0040.00416.84
8.0.80.0120.00316.93
8.0.70.0000.00716.95
8.0.60.0000.00816.87
8.0.50.0040.00416.88
8.0.30.0140.00617.20
8.0.20.0140.00517.40
8.0.10.0040.00417.07
8.0.00.0110.00816.79
7.4.330.0000.00515.14
7.4.320.0000.00616.33
7.4.300.0030.00316.35
7.4.290.0030.00516.61
7.4.280.0000.00816.63
7.4.270.0030.00316.57
7.4.260.0040.00416.59
7.4.250.0030.00316.55
7.4.240.0070.00016.55
7.4.230.0000.00716.53
7.4.220.0070.01116.67
7.4.210.0040.01116.60
7.4.200.0070.00016.43
7.4.160.0100.00716.44
7.4.150.0120.01517.40
7.4.140.0120.00617.86
7.4.130.0040.01216.59
7.4.120.0110.00616.48
7.4.110.0040.02216.55
7.4.100.0080.00816.54
7.4.90.0070.01016.67
7.4.80.0090.00819.39
7.4.70.0110.01116.41
7.4.60.0130.00616.51
7.4.50.0000.00916.59
7.4.40.0060.00916.54
7.4.30.0090.00916.50
7.4.10.0030.01414.84
7.4.00.0040.01415.01
7.3.330.0030.00313.23
7.3.320.0030.00313.14
7.3.310.0070.00016.38
7.3.300.0060.00016.22
7.3.290.0050.01016.30
7.3.280.0110.00616.36
7.3.270.0060.01217.40
7.3.260.0130.00416.23
7.3.250.0110.00516.41
7.3.240.0100.00916.44
7.3.230.0110.00516.39
7.3.210.0110.00816.46
7.3.200.0120.00416.64
7.3.190.0070.01016.52
7.3.180.0160.00016.39
7.3.170.0100.00716.46
7.3.160.0080.00816.44
7.3.130.0070.00714.77
7.3.120.0110.00514.69
7.3.110.0050.01214.92
7.3.100.0060.00514.80
7.3.90.0050.00814.81
7.3.80.0050.00414.67
7.3.70.0060.00914.80
7.3.60.0060.00614.70
7.3.50.0060.00714.72
7.3.40.0050.00714.73
7.3.30.0030.01114.84
7.3.20.0070.00716.58
7.3.10.0010.00716.76
7.3.00.0030.00716.69
7.2.330.0130.00316.29
7.2.320.0120.00616.71
7.2.310.0170.00716.79
7.2.300.0120.00316.71
7.2.290.0130.00716.31
7.2.260.0050.01314.77
7.2.250.0050.01114.68
7.2.240.0060.00615.08
7.2.230.0060.01014.98
7.2.220.0050.01114.88
7.2.210.0080.00315.01
7.2.200.0110.00615.07
7.2.190.0040.01014.96
7.2.180.0050.00614.90
7.2.170.0030.00815.02
7.2.160.0050.00914.90
7.2.150.0050.00717.00
7.2.140.0020.01116.83
7.2.130.0080.00416.86
7.2.120.0120.00316.88
7.2.110.0050.00716.88
7.2.100.0050.00816.80
7.2.90.0070.01016.77
7.2.80.0060.00816.84
7.2.70.0030.01216.85
7.2.60.0060.00716.87
7.2.50.0030.00716.76
7.2.40.0080.00516.98
7.2.30.0090.00516.76
7.2.20.0040.00816.84
7.2.10.0050.00616.97
7.2.00.0040.01017.70
7.1.330.0050.00915.64
7.1.320.0090.00215.67
7.1.310.0040.00915.62
7.1.300.0050.00515.70
7.1.290.0020.00915.66
7.1.280.0000.01315.74
7.1.270.0050.00615.79
7.1.260.0080.00515.69
7.1.250.0080.00615.71
7.1.240.0070.00415.63
7.1.230.0060.00615.77
7.1.220.0050.00815.62
7.1.210.0030.00915.75
7.1.200.0070.00515.67
7.1.190.0020.01215.60
7.1.180.0020.00915.73
7.1.170.0090.00415.50
7.1.160.0090.00515.41
7.1.150.0050.00715.84
7.1.140.0050.00515.69
7.1.130.0050.00715.56
7.1.120.0100.00515.54
7.1.110.0050.00915.73
7.1.100.0050.00716.48
7.1.90.0060.00615.81
7.1.80.0090.00415.73
7.1.70.0050.00816.09
7.1.60.0090.00916.96
7.1.50.0050.00616.04
7.1.40.0060.00715.61
7.1.30.0090.00615.63
7.1.20.0030.01215.48
7.1.10.0030.01215.72
7.1.00.0050.03117.78
7.0.330.0060.00615.31
7.0.320.0080.00715.33
7.0.310.0070.00615.45
7.0.300.0040.00515.22
7.0.290.0060.00715.43
7.0.280.0050.00715.28
7.0.270.0050.00415.34
7.0.260.0080.00715.44
7.0.250.0030.00815.27
7.0.240.0070.00715.28
7.0.230.0030.01015.45
7.0.220.0030.01215.32
7.0.210.0060.00615.43
7.0.200.0040.00715.72
7.0.190.0080.00315.46
7.0.180.0070.00915.27
7.0.170.0060.00815.44
7.0.160.0050.01015.38
7.0.150.0060.00815.09
7.0.140.0050.00515.37
7.0.130.0060.00815.33
7.0.120.0080.00615.49
7.0.110.0070.00515.37
7.0.100.0030.00815.39
7.0.90.0050.00715.31
7.0.80.0050.00615.46
7.0.70.0030.00815.53
7.0.60.0030.03316.91
7.0.50.0060.03216.15
7.0.40.0070.02015.66
7.0.30.0110.02115.67
7.0.20.0100.03615.52
7.0.10.0090.02015.71
7.0.00.0040.01815.63
5.6.400.0070.00514.30
5.6.390.0090.00514.37
5.6.380.0000.01314.21
5.6.370.0040.00814.29
5.6.360.0040.01014.32
5.6.350.0040.00614.38
5.6.340.0060.00514.48
5.6.330.0090.00714.38
5.6.320.0070.00314.20
5.6.310.0050.00614.40
5.6.300.0050.01014.32
5.6.290.0060.00814.28
5.6.280.0050.01616.47
5.6.270.0050.00714.26
5.6.260.0060.00414.41
5.6.250.0080.00514.17
5.6.240.0050.00814.28
5.6.230.0040.01114.40
5.6.220.0090.00314.16
5.6.210.0060.03116.37
5.6.200.0060.02215.58
5.6.190.0070.03216.31
5.6.180.0940.01916.42
5.6.170.0070.02116.35
5.6.160.0060.02516.28
5.6.150.0020.02615.59
5.6.140.0050.02815.51
5.6.130.0090.03115.52
5.6.120.0060.03216.56
5.6.110.0080.01716.64
5.6.100.0110.03216.57
5.6.90.0070.03116.42
5.6.80.0080.02016.16
5.6.70.0080.00614.24
5.6.60.0030.00814.25
5.6.50.0040.00814.16
5.6.40.0070.00314.20
5.6.30.0100.00514.22
5.6.20.0080.00814.29
5.6.10.0010.01114.13
5.6.00.0060.00614.06
5.5.380.0070.00714.42
5.5.370.0060.00814.18
5.5.360.0070.00714.26
5.5.350.0100.02016.03
5.5.340.0030.02215.41
5.5.330.0070.03216.11
5.5.320.0110.02816.20
5.5.310.0110.02316.31
5.5.300.0060.02115.49
5.5.290.0070.03115.50
5.5.280.0080.02316.47
5.5.270.0030.01916.41
5.5.260.0090.03016.33
5.5.250.0120.02716.44
5.5.240.0050.02516.11
5.5.230.0060.00614.14
5.5.220.0070.00714.08
5.5.210.0040.00814.31
5.5.200.0030.01014.15
5.5.190.0060.00614.03
5.5.180.0100.00414.08
5.5.170.0050.01014.14
5.5.160.0070.00714.31
5.5.150.0060.01014.17
5.5.140.0050.00814.19
5.5.130.0050.01014.22
5.5.120.0070.00414.10
5.5.110.0060.00614.23
5.5.100.0050.00914.19
5.5.90.0060.00914.29
5.5.80.0030.01113.95
5.5.70.0030.00914.04
5.5.60.0080.00714.13
5.5.50.0020.01414.13
5.5.40.0040.00914.26
5.5.30.0060.00814.28
5.5.20.0060.00714.34
5.5.10.0090.00813.93
5.5.00.0100.00613.96
5.4.450.0240.02914.47
5.4.440.0240.02814.33
5.4.430.0310.02614.31
5.4.420.0260.02314.42
5.4.410.0250.02114.29
5.4.400.0230.02414.16
5.4.390.0420.02514.31
5.4.380.0340.02014.38
5.4.370.0310.02214.38
5.4.360.0300.02514.23
5.4.350.0320.02114.37
5.4.340.0270.02214.25
5.4.330.0050.00511.91
5.4.320.0290.02114.33
5.4.310.0360.01714.22
5.4.300.0340.01814.27
5.4.290.0310.02114.21
5.4.280.0310.02414.21
5.4.270.0330.01814.32
5.4.260.0360.01914.30
5.4.250.0290.02614.26
5.4.240.0380.02514.32
5.4.230.0290.02214.26
5.4.220.0330.02214.25
5.4.210.0290.01814.35
5.4.200.0240.02414.26
5.4.190.0300.02114.23
5.4.180.0370.01814.28
5.4.170.0330.02014.28
5.4.160.0280.02214.24
5.4.150.0240.02914.33
5.4.140.0300.02313.34
5.4.130.0220.02313.26
5.4.120.0260.01913.44
5.4.110.0280.02713.38
5.4.100.0310.01913.24
5.4.90.0280.02313.42
5.4.80.0270.02213.34
5.4.70.0390.02213.30
5.4.60.0320.01513.37
5.4.50.0350.01613.33
5.4.40.0300.02113.33
5.4.30.0310.02013.44
5.4.20.0290.02013.38
5.4.10.0310.02013.39
5.4.00.0310.01913.22

preferences:
61.55 ms | 400 KiB | 5 Q