3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static $variable = 'static property'; static function Variable() { echo 'Method Variable called'; } } echo Foo::$variable; // This prints 'static property'. It does need a $variable in this scope. $variable = "Variable"; Foo::$variable(); // This calls $foo->Variable() reading $variable in this scope.

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.0140.00016.63
8.3.50.0110.00717.36
8.3.40.0050.01018.73
8.3.30.0120.00318.53
8.3.20.0000.00818.65
8.3.10.0080.00020.40
8.3.00.0000.00819.01
8.2.180.0070.01116.75
8.2.170.0100.00722.96
8.2.160.0070.00721.02
8.2.150.0070.01024.18
8.2.140.0030.00524.66
8.2.130.0030.00626.16
8.2.120.0040.00420.52
8.2.110.0030.00621.04
8.2.100.0090.00317.78
8.2.90.0050.00519.18
8.2.80.0040.00419.25
8.2.70.0050.00317.63
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0000.00718.09
8.2.20.0040.00417.54
8.2.10.0050.00217.73
8.2.00.0040.00417.73
8.1.280.0120.00425.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00722.50
8.1.230.0110.00020.84
8.1.220.0090.00017.91
8.1.210.0030.00718.84
8.1.200.0060.00317.35
8.1.190.0040.00417.53
8.1.180.0050.00318.10
8.1.170.0000.00818.86
8.1.160.0040.00418.76
8.1.150.0040.00418.45
8.1.140.0040.00417.30
8.1.130.0070.00017.74
8.1.120.0040.00417.36
8.1.110.0080.00017.29
8.1.100.0000.00717.29
8.1.90.0000.00717.43
8.1.80.0040.00417.38
8.1.70.0000.00717.32
8.1.60.0080.00017.57
8.1.50.0000.00817.41
8.1.40.0040.00417.52
8.1.30.0030.00517.58
8.1.20.0050.00317.63
8.1.10.0000.00717.45
8.1.00.0040.00417.54
8.0.300.0070.00020.04
8.0.290.0040.00416.63
8.0.280.0080.00018.48
8.0.270.0040.00417.16
8.0.260.0080.00016.69
8.0.250.0070.00016.92
8.0.240.0040.00416.97
8.0.230.0000.00716.87
8.0.220.0030.00316.84
8.0.210.0030.00316.80
8.0.200.0070.00016.90
8.0.190.0050.00316.91
8.0.180.0000.00716.74
8.0.170.0000.00716.89
8.0.160.0030.00316.87
8.0.150.0030.00616.68
8.0.140.0080.00016.74
8.0.130.0000.00513.25
8.0.120.0040.00416.76
8.0.110.0050.00216.73
8.0.100.0000.00816.65
8.0.90.0000.00716.79
8.0.80.0070.00716.84
8.0.70.0000.00816.81
8.0.60.0040.00416.69
8.0.50.0000.00716.84
8.0.30.0100.00916.98
8.0.20.0110.00916.90
8.0.10.0070.01317.06
8.0.00.0130.00616.86
7.4.330.0050.00012.95
7.4.320.0000.00716.55
7.4.300.0030.00316.50
7.4.290.0070.00016.61
7.4.280.0050.00316.49
7.4.270.0070.00016.43
7.4.260.0030.00313.24
7.4.250.0080.00016.43
7.4.240.0040.00416.40
7.4.230.0070.00016.34
7.4.220.0050.01516.50
7.4.210.0100.00416.54
7.4.200.0070.00016.54
7.4.190.0000.00716.57
7.4.160.0150.01116.25
7.4.150.0130.01016.56
7.4.140.0130.00616.49
7.4.130.0120.00416.37
7.4.120.0110.00716.37
7.4.110.0050.01416.56
7.4.100.0110.00716.41
7.4.90.0140.00616.34
7.4.80.0120.00817.77
7.4.70.0070.01016.42
7.4.60.0090.00916.36
7.4.50.0060.01016.27
7.4.40.0100.00716.26
7.4.30.0110.00716.45
7.4.20.0090.00916.11
7.4.10.0090.00916.53
7.4.00.0070.00915.42
7.3.330.0060.00013.22
7.3.320.0000.00613.17
7.3.310.0000.00716.13
7.3.300.0070.00016.17
7.3.290.0070.00716.24
7.3.280.0080.01016.30
7.3.270.0100.00716.40
7.3.260.0100.01016.41
7.3.250.0090.01016.18
7.3.240.0070.01116.28
7.3.230.0100.00716.22
7.3.220.0080.00815.86
7.3.210.0100.00616.24
7.3.200.0050.01316.27
7.3.190.0050.01216.24
7.3.180.0090.00816.24
7.3.170.0060.01316.39
7.3.160.0110.00916.30
7.3.150.0060.01415.89
7.3.140.0160.00916.15
7.3.130.0110.00716.19
7.3.120.0080.00915.20
7.3.110.0120.00615.56
7.3.100.0080.01015.65
7.3.90.0100.00815.47
7.3.80.0050.01115.66
7.3.70.0090.00815.54
7.3.60.0090.00815.30
7.3.50.0100.00815.55
7.3.40.0070.00715.46
7.3.30.0030.01515.35
7.3.20.0090.00716.37
7.3.10.0220.00716.48
7.3.00.0110.00816.34
7.2.340.0210.01016.59
7.2.330.0150.00916.53
7.2.320.0170.01016.69
7.2.310.0180.00816.70
7.2.300.0190.00716.46
7.2.290.0150.01016.54
7.2.280.0230.00816.34
7.2.270.0280.00316.44
7.2.260.0250.01316.53
7.2.250.0140.01215.74
7.2.240.0100.01515.85
7.2.230.0160.00815.99
7.2.220.0140.00915.78
7.2.210.0170.01215.70
7.2.200.0120.01315.78
7.2.190.0180.00815.76
7.2.180.0130.01215.56
7.2.170.0200.00415.81
7.2.160.0220.00916.51
7.2.150.0250.00916.47
7.2.140.0200.01316.63
7.2.130.0250.00816.58
7.2.120.0260.01016.60
7.2.110.0200.01316.58
7.2.100.0240.00816.54
7.2.90.0320.00616.38
7.2.80.0240.01016.35
7.2.70.0110.02016.60
7.2.60.0440.00616.82
7.2.50.0250.00916.46
7.2.40.0250.01016.61
7.2.30.0320.00616.59
7.2.20.0260.00916.58
7.2.10.0200.01216.82
7.2.00.0190.01117.58
7.1.330.0140.01015.62
7.1.320.0120.01015.65
7.1.310.0120.01015.38
7.1.300.0150.00815.69
7.1.290.0080.01115.39
7.1.280.0120.00915.45
7.1.270.0150.00715.33
7.1.260.0090.01415.39
7.1.250.0190.01215.37
7.1.240.0210.00915.51
7.1.230.0170.01315.42
7.1.220.0260.00415.46
7.1.210.0320.00315.41
7.1.200.0120.01215.41
7.1.190.0220.00615.28
7.1.180.0170.01215.30
7.1.170.0270.00515.51
7.1.160.0260.00415.27
7.1.150.0280.01415.27
7.1.140.0310.00315.39
7.1.130.0250.00415.28
7.1.120.0270.00315.41
7.1.110.0320.00315.46
7.1.100.0280.00415.47
7.1.90.0320.00315.30
7.1.80.0190.00815.31
7.1.70.0110.00716.14
7.1.60.0110.00916.32
7.1.50.0140.00716.13
7.1.40.0170.00416.24
7.1.30.0160.00616.21
7.1.20.0150.00916.14
7.1.10.0110.00916.14
7.1.00.0150.00616.11
7.0.330.0180.00915.13
7.0.320.0310.00815.26
7.0.310.0270.00315.10
7.0.300.0240.00715.18
7.0.290.0190.01015.07
7.0.280.0320.00015.08
7.0.270.0160.01315.14
7.0.260.0260.00415.05
7.0.250.0260.00315.14
7.0.240.0340.01415.18
7.0.230.0170.01015.17
7.0.220.0230.00515.17
7.0.210.0160.01315.15
7.0.200.0090.01016.04
7.0.190.0480.00716.01
7.0.180.0110.00516.08
7.0.170.0080.01216.00
7.0.160.0110.00616.02
7.0.150.0130.00415.98
7.0.140.0100.00816.04
7.0.130.0530.00615.94
7.0.120.0120.00716.10
7.0.110.0110.00716.07
7.0.100.0130.00515.98
7.0.90.0140.00616.02
7.0.80.0140.01216.04
7.0.70.0130.00816.02
7.0.60.0160.00716.04
7.0.50.0120.00716.05
7.0.40.0110.01116.07
7.0.30.0140.00616.02
7.0.20.0290.00416.05
7.0.10.0110.00816.04
7.0.00.0200.00116.00
5.6.400.0260.00615.67
5.6.390.0150.01515.79
5.6.380.0280.01115.79
5.6.370.0310.00615.95
5.6.360.0360.00015.68
5.6.350.0320.00315.97
5.6.340.0240.00815.65
5.6.330.0200.01115.96
5.6.320.0160.01616.19
5.6.310.0210.00815.80
5.6.300.0100.02618.38
5.6.290.0090.02618.21
5.6.280.0170.02418.38
5.6.270.0080.03218.46
5.6.260.0070.03418.28
5.6.250.0090.02918.58
5.6.240.0150.02218.42
5.6.230.0170.04718.46
5.6.220.0170.03118.40
5.6.210.0140.02818.22
5.6.200.0130.02918.29
5.6.190.0080.03418.42
5.6.180.0310.02218.52
5.6.170.0160.02518.41
5.6.160.0120.02618.34
5.6.150.0170.02818.45
5.6.140.0150.02518.45
5.6.130.0100.02718.24
5.6.120.0280.02418.45
5.6.110.0150.02818.49
5.6.100.0130.02818.43
5.6.90.0100.02718.53
5.6.80.0110.02717.94
5.6.70.0150.02317.99
5.6.60.0090.03618.08
5.6.50.0130.04218.07
5.6.40.0180.02318.04
5.6.30.0110.02918.11
5.6.20.0090.03317.98
5.6.10.0080.03018.03
5.6.00.0160.02417.93
5.5.380.0140.02116.74
5.5.370.0120.04816.64
5.5.360.0180.02616.62
5.5.350.0120.02716.60
5.5.340.0190.02316.98
5.5.330.0120.02916.97
5.5.320.0110.02816.92
5.5.310.0170.02616.91
5.5.300.0110.02616.65
5.5.290.0160.02516.96
5.5.280.0110.02916.88
5.5.270.0170.02416.95
5.5.260.0120.03116.96
5.5.250.0070.04416.81
5.5.240.0120.02916.59
5.5.230.0070.03216.52
5.5.220.0090.03116.63
5.5.210.0110.02516.70
5.5.200.0160.02416.66
5.5.190.0140.02216.53
5.5.180.0110.02716.37
5.5.170.0250.00615.69
5.5.160.0160.02616.55
5.5.150.0100.04716.44
5.5.140.0130.03016.48
5.5.130.0120.02316.51
5.5.120.0130.04016.56
5.5.110.0100.02616.61
5.5.100.0100.03416.51
5.5.90.0120.02316.55
5.5.80.0070.03316.48
5.5.70.0170.02116.41
5.5.60.0100.02316.53
5.5.50.0160.02216.52
5.5.40.0200.04216.53
5.5.30.0140.02816.47
5.5.20.0130.03516.40
5.5.10.0120.04716.59
5.5.00.0100.02516.29
5.4.450.0060.03015.87
5.4.440.0070.02615.90
5.4.430.0110.02416.14
5.4.420.0100.02215.84
5.4.410.0130.02115.93
5.4.400.0100.02515.77
5.4.390.0120.03015.83
5.4.380.0070.02515.88
5.4.370.0120.02315.79
5.4.360.0070.02515.81
5.4.350.0110.02215.83
5.4.340.0080.02915.95
5.4.330.0130.01312.68
5.4.320.0120.02015.88
5.4.310.0080.03815.75
5.4.300.0100.02615.82
5.4.290.0100.02215.94
5.4.280.0170.03115.94
5.4.270.0250.02115.73
5.4.260.0080.02515.96
5.4.250.0070.02515.81
5.4.240.0080.02415.80
5.4.230.0130.02715.82
5.4.220.0090.02915.86
5.4.210.0130.02915.84
5.4.200.0110.02115.68
5.4.190.0150.03615.78
5.4.180.0110.02215.78
5.4.170.0080.02415.79
5.4.160.0130.02015.79
5.4.150.0110.02415.84
5.4.140.0110.02114.75
5.4.130.0090.02114.79
5.4.120.0160.01814.74
5.4.110.0080.02514.77
5.4.100.0080.02414.75
5.4.90.0050.02114.79
5.4.80.0130.01614.77
5.4.70.0120.01814.73
5.4.60.0110.02014.77
5.4.50.0100.02214.80
5.4.40.0100.02014.80
5.4.30.0100.02614.78
5.4.20.0070.02614.77
5.4.10.0100.03214.78
5.4.00.0060.02414.80
5.3.290.0090.04214.97
5.3.280.0190.02014.97
5.3.270.0090.02915.00
5.3.260.0090.02814.99
5.3.250.0090.02315.06
5.3.240.0130.01714.99
5.3.230.0070.02614.94
5.3.220.0100.02414.97
5.3.210.0100.02214.94
5.3.200.0110.02214.87
5.3.190.0110.02014.91
5.3.180.0090.02615.02
5.3.170.0070.03115.04
5.3.160.0080.02515.04
5.3.150.0050.02615.00
5.3.140.0080.02415.01
5.3.130.0130.01915.01
5.3.120.0110.03114.93
5.3.110.0090.02915.03
5.3.100.0090.02314.94
5.3.90.0090.02315.04
5.3.80.0080.02414.87
5.3.70.0070.02314.94
5.3.60.0080.02215.04
5.3.50.0090.02114.93
5.3.40.0100.02314.94
5.3.30.0110.02215.05
5.3.20.0110.02014.98
5.3.10.0110.02214.97
5.3.00.0090.02314.97

preferences:
49.21 ms | 401 KiB | 5 Q