3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static public $bar = ['baz' => 2]; } $bar = ['baz' => 3]; var_dump(Foo::$bar['baz']);

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.0100.01016.50
8.3.50.0150.00621.27
8.3.40.0150.00018.63
8.3.30.0060.00918.71
8.3.20.0040.00420.34
8.3.10.0080.00021.95
8.3.00.0000.00823.50
8.2.180.0140.00418.26
8.2.170.0090.00619.13
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0090.00924.66
8.2.130.0040.00419.83
8.2.120.0020.00526.35
8.2.110.0040.00722.38
8.2.100.0030.00917.97
8.2.90.0050.00319.22
8.2.80.0000.00917.97
8.2.70.0030.00617.63
8.2.60.0050.00318.16
8.2.50.0060.00318.07
8.2.40.0050.00322.31
8.2.30.0000.00820.63
8.2.20.0070.00017.74
8.2.10.0040.00417.94
8.2.00.0000.00718.05
8.1.280.0110.00725.92
8.1.270.0040.00423.92
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00923.97
8.1.230.0000.01217.51
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0070.00317.36
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0090.00018.65
8.1.160.0000.00720.74
8.1.150.0000.00718.83
8.1.140.0080.00019.53
8.1.130.0040.00417.68
8.1.120.0080.00017.48
8.1.110.0040.00417.41
8.1.100.0070.00017.41
8.1.90.0070.00017.37
8.1.80.0000.00717.38
8.1.70.0000.00717.42
8.1.60.0060.00317.43
8.1.50.0040.00417.39
8.1.40.0020.00517.40
8.1.30.0000.00817.50
8.1.20.0000.00917.43
8.1.10.0040.00417.52
8.1.00.0070.00017.55
8.0.300.0020.00518.77
8.0.290.0060.00316.58
8.0.280.0000.00718.36
8.0.270.0030.00317.12
8.0.260.0030.00617.10
8.0.250.0000.00716.91
8.0.240.0000.00616.89
8.0.230.0040.00416.88
8.0.220.0000.00716.77
8.0.210.0030.00316.84
8.0.200.0030.00516.83
8.0.190.0000.00816.88
8.0.180.0100.00016.73
8.0.170.0040.00416.83
8.0.160.0040.00416.80
8.0.150.0040.00416.85
8.0.140.0040.00816.82
8.0.130.0000.00513.30
8.0.120.0000.00816.84
8.0.110.0000.00816.89
8.0.100.0050.00316.74
8.0.90.0030.00316.81
8.0.80.0100.00716.72
8.0.70.0030.00516.85
8.0.60.0070.00016.72
8.0.50.0070.00016.88
8.0.30.0140.00516.87
8.0.20.0080.01117.40
8.0.10.0040.00416.84
8.0.00.0080.01116.81
7.4.330.0030.00316.70
7.4.320.0050.00216.35
7.4.300.0000.00616.37
7.4.290.0000.00716.41
7.4.280.0050.00516.58
7.4.270.0000.00716.45
7.4.260.0070.00016.52
7.4.250.0000.00816.50
7.4.240.0020.00516.46
7.4.230.0000.00716.43
7.4.220.0140.01016.48
7.4.210.0090.00616.57
7.4.200.0000.00716.61
7.4.160.0070.01016.52
7.4.150.0160.00617.40
7.4.140.0150.00317.86
7.4.130.0090.00816.45
7.4.120.0130.00816.55
7.4.110.0070.01016.40
7.4.100.0060.01416.42
7.4.90.0100.00716.48
7.4.80.0030.01319.39
7.4.70.0000.01516.53
7.4.60.0070.01016.60
7.4.50.0090.00616.67
7.4.40.0100.00616.41
7.4.30.0060.00916.59
7.4.10.0110.01116.39
7.4.00.0090.00915.71
7.3.330.0000.00513.26
7.3.320.0030.00313.13
7.3.310.0040.00416.32
7.3.300.0070.00016.36
7.3.290.0100.00516.29
7.3.280.0090.00916.31
7.3.270.0160.02017.40
7.3.260.0120.00616.36
7.3.250.0130.00716.36
7.3.240.0110.00816.41
7.3.230.0000.01716.51
7.3.210.0100.00616.29
7.3.200.0130.00619.39
7.3.190.0110.00616.44
7.3.180.0100.00716.41
7.3.170.0090.00916.64
7.3.160.0090.00616.54
7.3.130.0070.01316.30
7.3.120.0000.01916.39
7.3.110.0100.00316.30
7.3.100.0030.01216.54
7.3.90.0100.01016.38
7.3.80.0100.00316.23
7.3.70.0070.00716.30
7.3.60.0090.00316.26
7.3.50.0030.01216.25
7.3.40.0040.01116.35
7.3.30.0080.00416.23
7.3.20.0030.01318.14
7.3.10.0130.00618.09
7.3.00.0000.01517.99
7.2.330.0090.00916.22
7.2.320.0070.01716.60
7.2.310.0070.01016.71
7.2.300.0140.00316.65
7.2.290.0150.00616.65
7.2.260.0040.01816.23
7.2.250.0070.01316.51
7.2.240.0070.00716.42
7.2.230.0040.01116.51
7.2.220.0070.01316.29
7.2.210.0030.00916.36
7.2.200.0090.00616.36
7.2.190.0040.01116.45
7.2.180.0050.00816.30
7.2.170.0100.00616.42
7.2.160.0060.01016.34
7.2.150.0070.01418.23
7.2.140.0090.00918.18
7.2.130.0070.01018.32
7.2.120.0070.00718.40
7.2.110.0150.00018.20
7.2.100.0000.01018.41
7.2.90.0040.00718.20
7.2.80.0040.01118.12
7.2.70.0060.01318.29
7.2.60.0090.00618.16
7.2.50.0060.00918.23
7.2.40.0000.01718.24
7.2.30.0060.00618.17
7.2.20.0090.00618.18
7.2.10.0120.00618.33
7.2.00.0050.00718.77
7.1.330.0070.00317.19
7.1.320.0040.00717.34
7.1.310.0090.00317.35
7.1.300.0090.00617.32
7.1.290.0080.00817.34
7.1.280.0060.00317.50
7.1.270.0130.00317.30
7.1.260.0100.00717.34
7.1.250.0070.01017.11
7.1.240.0040.00717.48
7.1.230.0060.00617.20
7.1.220.0030.01317.15
7.1.210.0000.01417.11
7.1.200.0000.01417.09
7.1.190.0060.00917.14
7.1.180.0070.00717.20
7.1.170.0030.01017.07
7.1.160.0030.01017.25
7.1.150.0040.01117.28
7.1.140.0000.01817.25
7.1.130.0060.00917.13
7.1.120.0000.01417.14
7.1.110.0080.00817.26
7.1.100.0050.00817.41
7.1.90.0030.01017.25
7.1.80.0160.00017.39
7.1.70.0020.00817.02
7.1.60.0060.01218.17
7.1.50.0050.01417.06
7.1.40.0040.00817.27
7.1.30.0080.00817.25
7.1.20.0030.01317.22
7.1.10.0090.00317.23
7.1.00.0000.04719.70
7.0.330.0110.00416.94
7.0.320.0110.00316.86
7.0.310.0140.00016.66
7.0.300.0090.00616.92
7.0.290.0030.01016.93
7.0.280.0090.00316.78
7.0.270.0030.00717.00
7.0.260.0040.01117.04
7.0.250.0030.01216.96
7.0.240.0080.00416.84
7.0.230.0080.00516.86
7.0.220.0070.01316.82
7.0.210.0090.00016.82
7.0.200.0080.00416.86
7.0.190.0030.00616.96
7.0.180.0030.01016.92
7.0.170.0040.01116.95
7.0.160.0060.00916.87
7.0.150.0030.00916.99
7.0.140.0030.01017.00
7.0.130.0040.01116.57
7.0.120.0060.00916.91
7.0.110.0100.00716.87
7.0.100.0030.01216.84
7.0.90.0030.01117.07
7.0.80.0030.01016.61
7.0.70.0070.00716.88
7.0.60.0030.03919.30
7.0.50.0060.04417.33
7.0.40.0080.04717.41
7.0.30.0160.04217.48
7.0.20.0170.03517.57
7.0.10.0070.04717.54
7.0.00.0110.02517.51
5.6.400.0090.00315.72
5.6.390.0140.00016.10
5.6.380.0110.00416.14
5.6.370.0060.00616.04
5.6.360.0030.00615.89
5.6.350.0100.00016.06
5.6.340.0090.00615.88
5.6.330.0040.00716.16
5.6.320.0070.00715.67
5.6.310.0070.00715.93
5.6.300.0080.00415.79
5.6.290.0040.00815.86
5.6.280.0020.03218.55
5.6.270.0100.01016.15
5.6.260.0030.01415.84
5.6.250.0070.00315.80
5.6.240.0000.01216.09
5.6.230.0030.00715.77
5.6.220.0100.00315.88
5.6.210.0100.03718.26
5.6.200.0050.04917.07
5.6.190.0060.05018.16
5.6.180.0280.03818.04
5.6.170.0150.03718.27
5.6.160.0080.02718.17
5.6.150.0100.02817.16
5.6.140.0070.02216.93
5.6.130.0020.04617.02
5.6.120.0020.02918.50
5.6.110.0050.04218.57
5.6.100.0080.04218.52
5.6.90.0080.03018.46
5.6.80.0120.03818.04
5.6.70.0070.00715.71
5.6.60.0060.00615.65
5.6.50.0030.01015.82
5.6.40.0060.00915.59
5.6.30.0090.00615.75
5.6.20.0040.01115.77
5.6.10.0030.01315.89
5.6.00.0090.00315.91
5.5.380.0090.00615.76
5.5.370.0070.01415.72
5.5.360.0100.00715.85
5.5.350.0050.04818.04
5.5.340.0100.02316.88
5.5.330.0080.04318.22
5.5.320.0390.02818.02
5.5.310.0150.02117.94
5.5.300.0060.01816.85
5.5.290.0030.04016.95
5.5.280.0050.02218.51
5.5.270.0070.04818.13
5.5.260.0040.03318.38
5.5.250.0110.02618.21
5.5.240.0100.04018.06
5.5.230.0040.00715.64
5.5.220.0040.01415.64
5.5.210.0120.00015.72
5.5.200.0060.01215.68
5.5.190.0070.01115.86
5.5.180.0030.01015.84
5.5.170.0060.00315.84
5.5.160.0070.00715.73
5.5.150.0110.00415.64
5.5.140.0030.00815.76
5.5.130.0100.00715.69
5.5.120.0030.00715.77
5.5.110.0060.01215.50
5.5.100.0040.00815.71
5.5.90.0030.01415.79
5.5.80.0060.00615.46
5.5.70.0060.00915.47
5.5.60.0040.00815.76
5.5.50.0000.00815.77
5.5.40.0110.00415.79
5.5.30.0050.00515.57
5.5.20.0040.01115.74
5.5.10.0100.00715.85
5.5.00.0090.00615.75

preferences:
51.78 ms | 401 KiB | 5 Q