3v4l.org

run code in 200+ PHP versions simultaneously
<?php // this will fail type-checking /** @psalm-var list<int> $b */ $b = array_filter([1, 2, 3], function (int $v) { return $v !== 2; }); echo json_encode($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)
7.4.0rc40.0070.00914.80
7.4.0rc30.0080.00914.79
7.4.0rc20.0080.00814.77
7.4.0rc10.0070.00914.80
7.4.0beta40.0070.00914.82
7.4.0beta20.0080.00814.81
7.4.0beta10.0080.00814.77
7.4.0alpha30.0090.00814.83
7.4.0alpha20.0080.00814.95
7.4.0alpha10.0080.00814.97
7.3.110.0070.00914.87
7.3.100.0080.00814.75
7.3.90.0080.00814.77
7.3.80.0080.00714.75
7.3.70.0070.00814.69
7.3.60.0070.00814.71
7.3.50.0080.00814.65
7.3.40.0080.00914.67
7.3.30.0080.00814.65
7.3.20.0080.00814.86
7.3.10.0090.00714.80
7.3.00.0080.00914.83
7.2.240.0070.01314.88
7.2.230.0090.00714.97
7.2.220.0070.01014.90
7.2.210.0070.00914.95
7.2.200.0070.00914.89
7.2.190.0090.00814.92
7.2.180.0080.00814.94
7.2.170.0080.00814.91
7.2.160.0080.00814.92
7.2.150.0070.00915.09
7.2.140.0090.00815.05
7.2.130.0070.00915.09
7.2.120.0080.00915.05
7.2.110.0080.00815.07
7.2.100.0080.00815.04
7.2.90.0090.00815.11
7.2.80.0100.00815.10
7.2.70.0090.00815.15
7.2.60.0100.00815.12
7.2.50.0080.00915.07
7.2.40.0080.00815.11
7.2.30.0090.00815.12
7.2.20.0090.00815.06
7.2.10.0080.00915.13
7.2.00.0100.00715.11
7.1.330.0100.00814.07
7.1.320.0090.00813.96
7.1.310.0090.00714.00
7.1.300.0080.00813.93
7.1.290.0080.00813.94
7.1.280.0080.00813.92
7.1.270.0080.00713.96
7.1.260.0080.00713.90
7.1.250.0080.00813.94
7.1.240.0090.00813.71
7.1.230.0100.00613.84
7.1.220.0090.00613.64
7.1.210.0080.00813.84
7.1.200.0070.00713.64
7.1.190.0090.00614.01
7.1.180.0140.00513.56
7.1.170.0080.00713.77
7.1.160.0060.01013.81
7.1.150.0110.00613.72
7.1.140.0110.00313.89
7.1.130.0110.00513.67
7.1.120.0110.00513.89
7.1.110.0030.01413.96
7.1.100.0020.01413.78
7.1.90.0060.01113.84
7.1.80.0090.00813.83
7.1.70.0080.00813.76
7.1.60.0050.01113.73
7.1.50.0100.00713.73
7.1.40.0060.00913.77
7.1.30.0100.00913.66
7.1.20.0120.00613.71
7.1.10.0130.00413.81
7.1.00.0080.00713.67
7.0.330.0090.00713.37
7.0.320.0090.00413.32
7.0.310.0060.01113.44
7.0.300.0080.00513.43
7.0.290.0090.00813.33
7.0.280.0030.01213.41
7.0.270.0070.00713.31
7.0.260.0070.00713.37
7.0.250.0040.01113.41
7.0.240.0100.00613.45
7.0.230.0040.01213.27
7.0.220.0100.00613.50
7.0.210.0080.00613.30
7.0.200.0080.00713.29
7.0.190.0140.00713.37
7.0.180.0090.00713.57
7.0.170.0080.01013.33
7.0.160.0100.00613.42
7.0.150.0050.01113.37
7.0.140.0060.01113.50
7.0.130.0090.00713.42
7.0.120.0060.01013.50
7.0.110.0120.00713.48
7.0.100.0170.01013.37
7.0.90.0110.00513.28
7.0.80.0130.00513.41
7.0.70.0100.01113.38
7.0.60.0110.00613.39
7.0.50.0060.00813.35
7.0.40.0110.00413.54
7.0.30.0110.00313.45
7.0.20.0030.01013.37
7.0.10.0060.01113.37
7.0.00.0060.00913.30
5.6.400.0050.01014.17
5.6.390.0070.00814.02
5.6.380.0080.00613.99
5.6.370.0090.00613.97
5.6.360.0080.00613.87
5.6.350.0030.01213.85
5.6.340.0100.00413.99
5.6.330.0080.00713.91
5.6.320.0110.00914.01
5.6.310.0090.01014.11
5.6.300.0120.00714.04
5.6.290.0080.00914.05
5.6.280.0100.00814.01
5.6.270.0120.00813.90
5.6.260.0110.01113.66
5.6.250.0060.01313.83
5.6.240.0090.00813.84
5.6.230.0120.00613.95
5.6.220.0090.00814.14
5.6.210.0120.00414.06
5.6.200.0130.00513.70
5.6.190.0090.00913.80
5.6.180.0070.00913.89
5.6.170.0080.00614.06
5.6.160.0080.01113.88
5.6.150.0100.01213.97
5.6.140.0070.01113.81
5.6.130.0080.00713.92
5.6.120.0080.01214.02
5.6.110.0030.01313.98
5.6.100.0100.01013.77
5.6.90.0070.01013.97
5.6.80.0100.00813.99
5.6.70.0080.00813.73
5.6.60.0080.00613.87
5.6.50.0110.00513.77
5.6.40.0110.00413.71
5.6.30.0080.00813.83
5.6.20.0120.00514.06
5.6.10.0080.00813.79
5.6.00.0080.00813.88
5.5.380.0100.00713.92
5.5.370.0140.00813.92
5.5.360.0110.00613.78
5.5.350.0130.00613.82
5.5.340.0100.00713.96
5.5.330.0140.00214.00
5.5.320.0100.00813.60
5.5.310.0170.00113.72
5.5.300.0080.00914.08
5.5.290.0110.00613.80
5.5.280.0120.00413.88
5.5.270.0080.01014.01
5.5.260.0080.01214.05
5.5.250.0090.00614.03
5.5.240.0090.00513.78
5.5.230.0050.00913.76
5.5.220.0070.00713.80
5.5.210.0040.01213.85
5.5.200.0070.01013.55
5.5.190.0060.01113.76
5.5.180.0100.00513.57
5.5.170.0060.01113.75
5.5.160.0110.00513.84
5.5.150.0100.00613.90
5.5.140.0030.01313.92
5.5.130.0090.00713.53
5.5.120.0060.00913.81
5.5.110.0090.00714.05
5.5.100.0060.00914.14
5.5.90.0070.00914.09
5.5.80.0050.00913.98
5.5.70.0060.00814.00
5.5.60.0090.00814.01
5.5.50.0090.00613.88
5.5.40.0120.00714.16
5.5.30.0080.01013.91
5.5.20.0090.00813.85
5.5.10.0120.00713.82
5.5.00.0100.00813.85
5.4.450.0020.01010.71
5.4.440.0050.00510.65
5.4.430.0060.00810.79
5.4.420.0030.00610.56
5.4.410.0050.00610.75
5.4.400.0060.00410.53
5.4.390.0030.00610.75
5.4.380.0020.00810.74
5.4.370.0000.01010.74
5.4.360.0080.00210.45
5.4.350.0070.00410.40
5.4.340.0020.00910.82
5.4.330.0070.00510.51
5.4.320.0030.01010.60
5.4.310.0030.00910.61
5.4.300.0070.00210.55
5.4.290.0070.00810.71
5.4.280.0060.00610.69
5.4.270.0090.00510.56
5.4.260.0090.00310.77
5.4.250.0040.00810.62
5.4.240.0040.00910.71
5.4.230.0030.00910.89
5.4.220.0060.00510.55
5.4.210.0060.00510.63
5.4.200.0050.00910.84
5.4.190.0060.00710.47
5.4.180.0070.00810.49
5.4.170.0060.00810.34
5.4.160.0070.00510.63
5.4.150.0070.00810.72
5.4.140.0080.00510.76
5.4.130.0050.01010.61
5.4.120.0060.00610.65
5.4.110.0060.00810.79
5.4.100.0050.00810.92
5.4.90.0080.00510.68
5.4.80.0080.00610.88
5.4.70.0030.00710.74
5.4.60.0050.00910.64
5.4.50.0050.00710.77
5.4.40.0080.00410.68
5.4.30.0050.00910.69
5.4.20.0050.00510.78
5.4.10.0060.00610.66
5.4.00.0090.00210.58
5.3.290.0080.00510.19
5.3.280.0090.00210.17
5.3.270.0040.00810.22
5.3.260.0080.00210.17
5.3.250.0030.00810.17
5.3.240.0060.00510.17
5.3.230.0050.00810.17
5.3.220.0050.00610.17
5.3.210.0040.00810.17
5.3.200.0040.00810.17
5.3.190.0030.00610.17
5.3.180.0080.00210.31
5.3.170.0050.00410.32
5.3.160.0080.00310.28
5.3.150.0050.00610.24
5.3.140.0060.00810.24
5.3.130.0040.00610.24
5.3.120.0020.00810.17
5.3.110.0040.00610.22
5.3.100.0020.00710.17
5.3.90.0050.00310.27
5.3.80.0050.00410.21
5.3.70.0040.00710.17
5.3.60.0060.00310.22
5.3.50.0030.00810.17
5.3.40.0020.00710.17
5.3.30.0040.00510.17
5.3.20.0050.00410.17
5.3.10.0030.00710.17
5.3.00.0040.00710.17
5.2.170.0060.00410.17
5.2.160.0030.00610.17
5.2.150.0080.00010.17
5.2.140.0020.00710.17
5.2.130.0060.00210.17
5.2.120.0080.00210.17
5.2.110.0010.00810.17
5.2.100.0030.00610.17
5.2.90.0060.00410.17
5.2.80.0060.00210.17
5.2.70.0050.00410.17
5.2.60.0020.00810.17
5.2.50.0050.00410.17
5.2.40.0060.00510.17
5.2.30.0070.00210.17
5.2.20.0050.00410.17
5.2.10.0080.00010.17
5.2.00.0020.00510.17
5.1.60.0050.00210.17
5.1.50.0060.00110.17
5.1.40.0060.00110.17
5.1.30.0050.00310.17
5.1.20.0070.00210.17
5.1.10.0050.00310.17
5.1.00.0030.00310.17
5.0.50.0040.00310.17
5.0.40.0030.00310.17
5.0.30.0060.00010.17
5.0.20.0040.00310.17
5.0.10.0060.00010.17
5.0.00.0040.00310.17
4.4.90.0020.00410.17
4.4.80.0000.00510.17
4.4.70.0060.00010.17
4.4.60.0060.00010.17
4.4.50.0040.00210.17
4.4.40.0010.00410.17
4.4.30.0020.00410.17
4.4.20.0040.00210.17
4.4.10.0060.00010.17
4.4.00.0010.00410.17
4.3.110.0030.00210.17
4.3.100.0050.00110.17
4.3.90.0040.00110.17
4.3.80.0000.00510.17
4.3.70.0030.00210.17
4.3.60.0010.00410.17
4.3.50.0010.00410.17
4.3.40.0030.00210.17
4.3.30.0050.00110.17
4.3.20.0040.00310.17
4.3.10.0000.00610.17
4.3.00.0050.00210.17